#201: Broken WebSubmit functions (Python errors)
------------------------+---------------------------------------------------
Reporter: bthiell | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: WebSubmit | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by skaplun):
This is just to add that for most of the undefined variables (in
particular sysno and curdir), these are false positives. In fact,
websubmit_functions are not imported as such and used, but they are loaded
into a sandbox, where such variables are defined as global variables.
Since such variables are not written to, there is no need for the global
directive at the beginning of the particular websubmit function, and hence
pylint thinks that the variable is never declared (which might indeed be
the case if the repository admin has not chained the websubmit functions
in the proper order).
Some other functions instead are going to disappear as part of the branch
'''cleaned-websubmit-handlers''' http://invenio-software.org/cgi-
bin/cgit/personal/invenio-sam%20/log/?h=cleaned-websubmit-handlers
Regarding other foreseen global variable that pylint might think they have
never been declared, see:
http://invenio-software.org/cgi-bin/cgit/invenio/commit/?id=166181e2
--
Ticket URL: <http://invenio-software.org/ticket/201#comment:2>
Invenio <http://invenio-software.org>