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