[albatross-users] ctx.locals.__page__ for random pages

Matt Goodall matt at pollenation.net
Thu Aug 14 22:00:26 EST 2003


Is there a good reason why __page__ isn't set in ctx.locals for random 
apps? It's quite a useful piece of information to have available, here's 
some uses:

    * Makes it easy to create a run_template() equivalent which can
      handle a relative path, no need to worry what path the page is in.
    * Can be used a namespace for session management.
    * Will help with getting page_enter() and page_leave() working for
      random apps.

I'm not entirely sure where the best place to make the change is: 
possibly in RandomPageModuleMixin but changing PageModuleMixin would be 
better.

Cheers, Matt

-- 
Matt Goodall, Pollenation Internet Ltd
w: http://www.pollenationinternet.com
e: matt at pollenation.net





More information about the Albatross-users mailing list