<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><P>I'm using Zope 2.8.8 and I trying to make my own product.</P>
<P> </P>
<P>Whenever I make a product with errors in the python coding, I could see my product name registered in the product management page. But when I fix all the error, the product disappears; it not in the product management page or the add menu.</P>
<P> </P>
<P>What is the problem here?</P>
<P> </P>
<P>here is my coding</P>
<P> </P>
<P>__init__.py--------</P>
<P>-------------------</P>
<P>import helloModule</P>
<P>def initialize(context):<BR> context.registerClass(<BR> helloModule.helloClass,<BR> permission="Add Hello Object",<BR> constructor=(<BR> helloModule.manage_addHelloForm,<BR> helloModule.manage_addHello<BR> )<BR> )<BR></P>
<P> </P>
<P>helloModule.py--------</P>
<P>------------------------</P>
<P>def manage_addHelloForm(self):<BR> " Form for adding a Hello Object "<BR> return """<BR> <html><BR> <head><BR> <title></title><BR> </head></P>
<P> <body><BR> <form method="post" action="./manage_addHello"><BR> <input type=text name=id><BR> <input type=submit value="Add Hello"><BR> </form><BR> </body><BR> </html><BR> """</P>
<P>def manage_addHello(self):<BR> " Method for adding a Hello Object "<BR> newHello=helloClass(id)<BR> self._setObject(id, newHello)<BR> return self.manage_main(self, REQUEST)</P>
<P>class helloClass:<BR> meta_type='Hello Object'<BR> <BR> def __init__(self, name='World'):<BR> self.name=name</P>
<P> def saySomething(self):<BR> return "Hello, " + self.name</P>
<P> def edit(self, name):<BR> self.name=name<BR></P></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>