Andrew Milton schrieb:
> Did you paste this code, because it has errors...

Ahh sorry, I missed the last charakter, a ")".

Here it is again:

        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)

Greetings Roman
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to