[Zope] anyone skilled in the ways of changing page properties?

Chris Withers chrisw@nipltd.com
Fri, 28 Jul 2000 09:35:40 +0100


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