Hello Andrew,

Andrew Milton schrieb:
> Are you sure your genId() method works?

Well, yes, it does what it's ment to do. It generates an id, a string.

Here it is:

        def genId(self,context):
                items = [ int(e[2:]) for e in context.objectIds('Folder') ]
                if items == []:
                        return 'lt100000'
                return 'lt%s' % str(max(items)+1

> what does return self.id return instead of self.getId() ?

I just checked, there is no difference. Both return the id of the product 
instance as string.

Greetings Roman
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to