<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"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thanks for repling Marco.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I'm using a window version of zope and linux command 'zopectl fg' doesn't work.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">what is the forground command in windows? Is the "run in console" the same as forground??<BR><BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Marco Bizzarri &lt;marco.bizzarri@gmail.com&gt;<BR>To: Allen Huang &lt;swapp0@yahoo.com&gt;<BR>Cc: Zope &lt;zope@zope.org&gt;<BR>Sent: Wednesday, January 3, 2007 11:48:59 AM<BR>Subject: Re: [Zope] The product I made isn't in the product management page<BR><BR>
<DIV>Two suggestions:<BR><BR>1) run zope in foreground, so that you can see if Zope is complaining<BR>about your project;<BR><BR>2) make helloClass derive from OFS.SimpleItem.SimpleItem.<BR><BR>Regards<BR>Marco<BR><BR>On 1/3/07, Allen Huang &lt;swapp0@yahoo.com&gt; wrote:<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; I'm using Zope 2.8.8 and I trying to make my own product.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Whenever I make a product with errors in the python coding, I could see my<BR>&gt; product name registered in the product management page. But when I fix all<BR>&gt; the error, the product disappears; it not in the product management page or<BR>&gt; the add menu.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; What is the problem here?<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; here is my coding<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; __init__.py--------<BR>&gt;<BR>&gt; -------------------<BR>&gt;<BR>&gt; import helloModule<BR>&gt;<BR>&gt; def initialize(context):<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;
 context.registerClass(<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; helloModule.helloClass,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; permission="Add Hello Object",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; constructor=(<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; helloModule.manage_addHelloForm,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; helloModule.manage_addHello<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; helloModule.py--------<BR>&gt;<BR>&gt; ------------------------<BR>&gt;<BR>&gt; def manage_addHelloForm(self):<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; " Form for adding a Hello Object "<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return """<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;html&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &lt;head&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;title&gt;&lt;/title&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/head&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;body&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form method="post" action="./manage_addHello"&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=text name=id&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=submit value="Add Hello"&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &lt;/form&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/body&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/html&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; """<BR>&gt;<BR>&gt; def manage_addHello(self):<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; " Method for adding a Hello Object "<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; newHello=helloClass(id)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self._setObject(id, newHello)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return self.manage_main(self, REQUEST)<BR>&gt;<BR>&gt; class helloClass:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; meta_type='Hello Object'<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; def __init__(self, name='World'):<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.name=name<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; def saySomething(self):<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return "Hello, " + self.name<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; def edit(self,
 name):<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.name=name<BR>&gt;<BR>&gt; __________________________________________________<BR>&gt; Do You Yahoo!?<BR>&gt; Tired of spam? Yahoo! Mail has the best spam protection around<BR>&gt; <A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com</A><BR>&gt; _______________________________________________<BR>&gt; Zope maillist&nbsp;&nbsp;-&nbsp;&nbsp;Zope@zope.org<BR>&gt; <A href="http://mail.zope.org/mailman/listinfo/zope" target=_blank>http://mail.zope.org/mailman/listinfo/zope</A><BR>&gt; **&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**<BR>&gt; (Related lists -<BR>&gt;&nbsp;&nbsp;<A href="http://mail.zope.org/mailman/listinfo/zope-announce" target=_blank>http://mail.zope.org/mailman/listinfo/zope-announce</A><BR>&gt;&nbsp;&nbsp;<A href="http://mail.zope.org/mailman/listinfo/zope-dev" target=_blank>http://mail.zope.org/mailman/listinfo/zope-dev</A> )<BR>&gt;<BR>&gt;<BR>&gt;<BR><BR><BR>--
 <BR>Marco Bizzarri<BR><A href="http://iliveinpisa.blogspot.com/" target=_blank>http://iliveinpisa.blogspot.com/</A></DIV></DIV><BR></DIV></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>