Menu

#16 r is not available within <%requestlocal> blocks

closed-fixed
nobody
compiler (3)
5
2005-09-09
2005-09-09
No

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)

Discussion

  • Mike Bayer

    Mike Bayer - 2005-09-09
    • status: open --> closed-fixed
     
  • Mike Bayer

    Mike Bayer - 2005-09-09

    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.

     
Auth0 Logo