3 Jan
2001
3 Jan
'01
2:49 p.m.
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')
Yeah, I'm jus using DTML because it's the more pathological case and needs to look pretty in DTML first. :-)
...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?
Yes. That's what Bob S. suggested. What are the benefits of this?