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 sessionmanager.SessionData.get('a')['mykey'] == 1:

sessionmanager.SessionData.b = 1
...as opposed to...
if sessionmanager.SessionData.set('b',1)

cheers,

Chris

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to