[Zope] exceptions/documentation problem

Marcin Dobrzycki marcin.dobrzycki at bmpg.pl
Mon Jul 19 04:20:36 EDT 2004


Dieter Maurer wrote at July 16, 2004 9:36 pm:
> Marcin Dobrzycki wrote at 2004-7-16 13:11 +0200:
>>Hi, this mail is because of lack of Zope documentation. I got to call
>> method of one of the ZopeObjects (Folder). Is there any docs about what
>> exceptions can be thrown? Could you give me some links to it.Thanks.
>
> Why do you want this information?
>

It's my way to find out if the specified folder exists.

> Note that it is *very* dangerous to catch exceptions.
>
Is there any better way? If so, I didn't find it. Didn't find something
like folder_object.has_child('my_sub_folder') method. And listing all
subobjects' id in container, and comparing each id with folder I want to
add is, let's say, a little
bit awkward.

Thank you for RE. My regards.






More information about the Zope mailing list