1 Mar
2006
1 Mar
'06
1:41 p.m.
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): "asdf" 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