Changeset 8331e7d in trunk


Ignore:
Timestamp:
2020-07-09T20:05:31Z (5 years ago)
Author:
Sajith Sasidharan <sajith@…>
Branches:
master
Children:
83f36ab6
Parents:
44ecfda
git-author:
Sajith Sasidharan <sajith@…> (2020-06-24 01:54:23)
git-committer:
Sajith Sasidharan <sajith@…> (2020-07-09 20:05:31)
Message:

Remove now-unnecessary UploadResultsPage?.render_UPLOAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/web/unlinked.py

    r44ecfda r8331e7d  
    8787        elem = UploadResultsElement(self._upload_results)
    8888        return renderElement(req, elem)
    89 
    90     # This is weird but necessary because:
    91     #
    92     #  1. MultiFormatResource.render() uses argument "t" to figure out
    93     #     its output format.
    94     #
    95     #  2. Upload request is of the form "POST /uri?t=upload&file=newfile".
    96     #     See URIHandler.render_POST().
    97     #
    98     # MultiFormatResource.render() looks up "t" argument, which in
    99     # this case has the value "upload", and then it would look for a
    100     # render_UPLOAD() method.
    101     #
    102     # We could change upload request to use more descriptive names
    103     # that do not cause name collisions like this.  That should be a
    104     # separate change though.
    105     render_UPLOAD = render_HTML
    10689
    10790
Note: See TracChangeset for help on using the changeset viewer.