Re: [Zope] uncataloging

2008-08-17 Thread Dieter Maurer
Jens Vagelpohl wrote at 2008-8-16 11:45 +0200: On Aug 16, 2008, at 11:06 , Dieter Maurer wrote: The easiest way to determine the uid is probably to locate the object via a catalog search. You will get a catalog proxy for the object, often also called brain. This proxy has the method

Re: [Zope] uncataloging

2008-08-16 Thread Dieter Maurer
Darryl Caldwell wrote at 2008-8-13 19:49 -0800: ... I have looked at the source of Catalog.py but am still confused about what parameters I need to uncatalog an object. Is the uid the same as the object id? No. The uid that you must pass to uncatalog_object is the same one that has been passed

Re: [Zope] uncataloging

2008-08-16 Thread Jens Vagelpohl
On Aug 16, 2008, at 11:06 , Dieter Maurer wrote: The easiest way to determine the uid is probably to locate the object via a catalog search. You will get a catalog proxy for the object, often also called brain. This proxy has the method getPath() which returns the object's uid -- don't

Re: [Zope] uncataloging

2008-08-14 Thread Peter Bengtsson
I don't know how to uncatalog a brain but I do know how to uncatalog a normal zope object:: # to uncatalog 'self' path = '/'.join(self.getPhysicalPath()) self.MyCatalog.uncatalog_object(path) # to uncatalog some other know object path = '/'.join(self.some_object.getPhysicalPath())

Re: [Zope] uncataloging

2008-08-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Darryl Caldwell wrote: Hey folks, I have looked at the source of Catalog.py but am still confused about what parameters I need to uncatalog an object. Is the uid the same as the object id? That which is returned from obj.getId(), or is it the

[Zope] uncataloging

2008-08-13 Thread Darryl Caldwell
Hey folks, I have looked at the source of Catalog.py but am still confused about what parameters I need to uncatalog an object. Is the uid the same as the object id? That which is returned from obj.getId(), or is it the same as the object Identifier listed on the Catalog tab within the catalog?