Hi, I'm from german and i started to program products for my zope. I understand the work between zope and my python-product, but i have a problem. I have a class with methods, one method is called person, to add a person to a list. This method should be called from a from from a dtml doc. But zope says the following. <!-- http://server.geyer.kabeljournal.de:8080/Poll/Test_Mail_Liste/Test_Mail_List... --> <!-- Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214, in publish_module File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179, in publish File /usr/share/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: RoleManager) File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 151, in publish File /usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py, line 166, in traverse File /usr/lib/python1.5/site-packages/ZPublisher/HTTPResponse.py, line 511, in notFoundError NotFound: (see above) --> Who can help me, it is very important. Thanks a lot P.S.: My product files are atteached and sorry for my english
Andre Schubert wrote:
Hi,
I'm from german and i started to program products for my zope. I understand the work between zope and my python-product, but i have a problem. I have a class with methods, one method is called person, to add a person to a list. This method should be called from a from from a dtml doc. But zope says the following.
File /usr/lib/python1.5/site-packages/ZPublisher/HTTPResponse.py, line 511, in notFoundError NotFound: (see above)
import Mail
meta_types=( {'name': 'Mailist','action': 'manage_addMaillistForm'}, )
methods={ 'manage_addMaillistForm': Mail.addMaillistForm, 'manage_addMaillist': Mail.addMaillist, }
__ac_permissions__=( ('Add Maillist',('manage_addMaillistForm','manage_addMaillist')), ('Change Maillist', ()), ('Person',('person',),('Manager',)), )
First off, this is the old way to initialize Products. The new way can be found at http://www.zope.org/Members/michel/Projects/Interfaces/ProductRegistration
class Mail(
def person(self,person_name,action=None,REQUEST=None): personen=self.personen personen[ len(personen) + 1 ]=person_name self.personen=personen if action is None: action='' if REQUEST is not None: return MessageDialog( title='Vote Accepted', message='Your vote has been accepted.', action =action, )
Methods must have document strings to be published. Method's without document strings can never be called through the web. -Michel
participants (2)
-
Andre Schubert -
Michel Pelletier