Re: [Zope] Core Session Tracking DTML

2001-01-03 Thread Chris Withers
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

Re: [Zope] Core Session Tracking DTML

2001-01-03 Thread Chris McDonough
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

Re: [Zope] Core Session Tracking DTML

2001-01-03 Thread Chris Withers
Chris McDonough wrote: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? More graceful code that's more 'pythonesque' in Python Scripts: if sessionmanager.SessionData.a['mykey'] == 1: ...as opposed to... if

Re: [Zope] Core Session Tracking DTML

2001-01-03 Thread Chris McDonough
Chris McDonough wrote: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? More graceful code that's more 'pythonesque' in Python Scripts: if sessionmanager.SessionData.a['mykey'] == 1: ...as opposed to...

Re: [Zope] Core Session Tracking DTML

2001-01-03 Thread Chris Withers
Chris McDonough wrote: You can't do assignment in DTML, and session-tracking needs to be usable from DTML, so the "ob.attr = val" idiom is out from the get-go. Another assumption I'm making is that "there should only be one way to do it". I'd rather not have both __setattr__ and .set

Re: [Zope] Core Session Tracking DTML

2001-01-03 Thread Chris McDonough
Chris McDonough wrote: sessionmanager.SessionData.a ...or something similar? Yes. That's what Bob S. suggested. What are the benefits of this? More graceful code that's more 'pythonesque' in Python Scripts: if sessionmanager.SessionData.a['mykey'] == 1: ...as opposed to...