Hi all,
i've just started with zope, and i'm trying to write a filesystem
product, so i can have a project in svn and work on it in the
filesystem.
I've followed the guide at zope.org for creating a minimal product, but
can't get this to show up in the list of products.
Can anyone see whats wrong?
Thanks for reading,
Paul
__init.py__
---
import minimal
def initialize(context):
init the product
contect.registerClass(minimal.minimal,constructor=(minimal.manage_addMinimal,))
minimal.py
--
from OFS import SimpleItem
class minimal(SimpleItem.SimpleItem):
minimal object
meta_type = 'minimal'
def __init__(self,id):
initialise new instance
self.id = id
def index_html(self):
used to view content of the object
return 'htmlbody Hello /body/html'
def manage_addMinimal(self, RESPONSE):
add minimal obj to folder
self._setObject('minimal_id', minimal('minimal_id'))
RESPONSE.redirect('index_html')
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )