#140: WebSubmit: rn "global" variable is not set
-----------------------+----------------------------------------------------
Reporter: jcaffaro | Owner:
Type: defect | Status: new
Priority: major | Milestone: v1.0
Component: WebSubmit | Version:
Keywords: |
-----------------------+----------------------------------------------------
Some parts of WebSubmit engine expect to work with the rn (report number)
variable. This one can only be set by the WebSubmit functions, which now
run in their own "sandbox", with the side effect that rn variable is
apparently never set in the WebSubmit engine. For eg. in endaction()
function:
{{{
def endaction(req,
c=CFG_SITE_NAME,
ln=CFG_SITE_LANG,
doctype="",
act="",
startPg=1,
access="",
mainmenu="",
fromdir="",
nextPg="",
nbPg="",
curpage=1,
step=1,
mode="U"):
[...]
try:
rn
except NameError:
rn = ""
[...]
if uid_email != "" and uid_email != "guest" and rn != "":
# this never get executed. Too bad, it should log a few
interesting bits
[...]
}}}
Probably that rn could be extracted from the environment the WebSubmit
functions run, and given as parameter to endaction().
--
Ticket URL: <https://cdswaredev.cern.ch/invenio/ticket/140>
Invenio <http://invenio-software.org>