> 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?



_______________________________________________
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