[Zope3-dev] Calling persistent function

Danny Smith pythonlover75 at yahoo.com
Wed Jan 21 22:00:29 EST 2004


I figured out how to add a persistent module to the
site manager but not how to call a function in it from
a page template.  The expression:

<span tal:content="python:
container.getSiteManager()['default'].resolve('foo.bar')"
/>

will correctly resolve the bar function in the module
foo, but when I try to call it I get
ForbiddenAttribute __call__.

I'm just playing around, is it possible to call a
persistent function from a page template?


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/



More information about the Zope3-dev mailing list