Two suggestions:

1) run zope in foreground, so that you can see if Zope is complaining
about your project;

2) make helloClass derive from OFS.SimpleItem.SimpleItem.


On 1/3/07, Allen Huang <[EMAIL PROTECTED]> wrote:

I'm using Zope 2.8.8 and I trying to make my own product.

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.

What is the problem here?

here is my coding


import helloModule

def initialize(context):
        permission="Add Hello Object",


def manage_addHelloForm(self):
    " Form for adding a Hello Object "
    return """

                <form method="post" action="./manage_addHello">
                    <input type=text name=id>
                    <input type=submit value="Add Hello">

def manage_addHello(self):
    " Method for adding a Hello Object "
    self._setObject(id, newHello)
    return self.manage_main(self, REQUEST)

class helloClass:
    meta_type='Hello Object'

    def __init__(self, name='World'):

    def saySomething(self):
        return "Hello, " +

    def edit(self, name):

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Marco Bizzarri
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to