[Zope-dev] Finding specific parent object with acquisition ?
Martijn Jacobs
mart@eastsite.nl
Fri, 17 Aug 2001 16:41:24 +0200
> Instead of saying self.<id>, which gives me the object I want by id, I want
> to do something like self.getObject("Special Folder"), where I want to find
> the first instance of a specific type, for example the (made-up) product
> "Special Folder". Is this also possible finding it by acquisition?
Ow damm. Once you understand it, it's so simpel :)
if self.objectIds("Special Folder") != []:
#you found a Special Folder!
it's doing acquisition is this way also.
Thank you for the help anyway!!!!!
martijn jacobs
eastsite
www.eastsite.nl