[Zope] Acquisition not working as expected

Roman Klesel roman_plonemail at lotuseyes.de
Wed Mar 1 08:52:25 EST 2006


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


More information about the Zope mailing list