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@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? Best regards, Marc
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@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@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@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
participants (2)
-
Marc Rijken -
Matt Hamilton