Hi tav,

Try changing all your _[pagename] to _.getitem(pagename,0),
especially when you're getting errors about strings not having
attributes.

_[pagename] will call the object's __call__ method, if it has one and
return the result, rather then the actual object. Which can be more than
a little irritating ;-)

getitem gives you more control:

getitem(object,0) will always return the object.

getitem(object,1) will __call__ it if it can.

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