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):
"asdf"
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 - [email protected]
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 )