[Zope] AttributeError __call__
Matt Hamilton
matth at netsight.co.uk
Mon May 17 05:02:11 EDT 2004
Marc Rijken wrote:
> Hi,
>
> I have a python scrypt index_html in the folder user/mail_password. I
> get the error mentioned in the subject when I call
> container.user.mail_password(email='marc at rijken.org'. But when I call
> http://localhost/user/mail_password?email=marc@rijken.org I won't get an
> error. To be this is very strange. Why does a python call to
> mail_password not traverse correctly to index_html and a http call works
> correctly?
Marc,
You have to call
container.user.mail_password.index_html(email='marc at rijken.org') as that
is the actual method. I think the reason for the difference is that
when you traverse to the object via the web, the publishing machinery
calls index_html for a folder automatically.
-Matt
--
Matt Hamilton matth at netsight.co.uk
Netsight Internet Solutions, Ltd. Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development & Consulting | Co-location | Hosting
More information about the Zope
mailing list