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