<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"> </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"> </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 <marco.bizzarri@gmail.com><BR>To: Allen Huang <swapp0@yahoo.com><BR>Cc: Zope <zope@zope.org><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 <swapp0@yahoo.com> wrote:<BR>><BR>><BR>><BR>> I'm using Zope 2.8.8 and I trying to make my own product.<BR>><BR>><BR>><BR>> Whenever I make a product with errors in the python coding, I could see my<BR>> product name registered in the product management page. But when I fix all<BR>> the error, the product disappears; it not in the product management page or<BR>> the add menu.<BR>><BR>><BR>><BR>> What is the problem here?<BR>><BR>><BR>><BR>> here is my coding<BR>><BR>><BR>><BR>> __init__.py--------<BR>><BR>> -------------------<BR>><BR>> import helloModule<BR>><BR>> 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>><BR>><BR>><BR>><BR>> helloModule.py--------<BR>><BR>> ------------------------<BR>><BR>> def manage_addHelloForm(self):<BR>> " Form for adding a Hello Object "<BR>> return """<BR>> <html><BR>>
<head><BR>> <title></title><BR>> </head><BR>><BR>> <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>> """<BR>><BR>> 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)<BR>><BR>> class helloClass:<BR>> meta_type='Hello Object'<BR>><BR>> def __init__(self, name='World'):<BR>> self.name=name<BR>><BR>> def saySomething(self):<BR>> return "Hello, " + self.name<BR>><BR>> def edit(self,
name):<BR>> self.name=name<BR>><BR>> __________________________________________________<BR>> Do You Yahoo!?<BR>> Tired of spam? Yahoo! Mail has the best spam protection around<BR>> <A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com</A><BR>> _______________________________________________<BR>> Zope maillist - Zope@zope.org<BR>> <A href="http://mail.zope.org/mailman/listinfo/zope" target=_blank>http://mail.zope.org/mailman/listinfo/zope</A><BR>> ** No cross posts or HTML encoding! **<BR>> (Related lists -<BR>> <A href="http://mail.zope.org/mailman/listinfo/zope-announce" target=_blank>http://mail.zope.org/mailman/listinfo/zope-announce</A><BR>> <A href="http://mail.zope.org/mailman/listinfo/zope-dev" target=_blank>http://mail.zope.org/mailman/listinfo/zope-dev</A> )<BR>><BR>><BR>><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>