[Zope] zope product problem

zope at netchan.cotse.net zope at netchan.cotse.net
Wed May 5 09:03:44 EDT 2004


> def __init__(self, id, question, responses):
>    self.id=id
>    self._question = question
>    self._responses = responses

You have to use self.question, self.response, because these are the
attribte names you give in the properties definition:

> _properties=(
>        {'id':'question','type':'string','mode':'w'},
>        {'id':'responses','type':'lines','mode':'w'},
>      )

Regards,
Sandor




More information about the Zope mailing list