[Zope] Core Session Tracking & DTML
Chris Withers
chrisw@nipltd.com
Wed, 03 Jan 2001 09:54:55 +0000
Chris McDonough wrote:
>
> <dtml-with sessionmanager>
> <dtml-with getSessionData>
> <dtml-var "get('a')">
> </dtml-with>
> </dtml-with>
I would have thought this stuff would be better in a python script:
sessionmanager.getSessionData.get('a')
...since it is definitely 'logic'
Would it be posible to make that even nicer and have whatever
getSessionData is implement __getattr__ so you could do:
sessionmanager.SessionData.a
...or something similar?
just my 2p,
Chris