r is not available within <%requestlocal> blocks
Brought to you by:
zzzeek
The global http request object, r, does not seem to be
available within <%requestlocal> blocks.
This is in constrast to the documentation, which
states: "The good news is, the regular Myghty variables
m, ARGS, r etc. are all available within a
request-scoped block."
(http://www.myghty.org/docs/scopedpython.myt#scopedpython_request)
Logged In: YES
user_id=1100624
nice catch, actually no non-standard globals were named in
threadlocal or requestlocal (they were there, but they were
hiding).
the function declarations for threadlocal and requestlocal
sections in a compiled template now list out all configured
globals including 'r' and any user-defined globals.
this is committed to lib/myghty/objgen.py version 1.43 and i
am trying to get a release out today.