Re: [Zope] Automatic Cataloging

2007-06-10 Thread Dieter Maurer
Andreas Jung wrote at 2007-6-10 08:49 +0200: > ... >newob = container.manage_clone(...) >newob.manage_changeProperties(REQUEST=context.REQUEST) >catalog.catalog_object(...) Minor remark: Usually, it is a bad idea to call "manage_changeProperties" (or other "mange*" methods) with a REQUEST arg

Re: [Zope] Automatic Cataloging

2007-06-10 Thread Dieter Maurer
Tom Von Lahndorff wrote at 2007-6-9 14:09 -0400: > ... > You try to catalog "business_name" which is likely a string. You should not expect that cataloging a string affects many indexes ;-) You what to catalog the cloned object. I think (but I am not sure) that "this" may refer to this object. I

Re: [Zope] Automatic Cataloging

2007-06-10 Thread Tom Von Lahndorff
On Jun 10, 2007, at 2:49 AM, Andreas Jung wrote: --On 9. Juni 2007 14:09:15 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: Hi, I have a zCatalog installed and I'm trying to automatically catalog an object and it's properties using: What a dirty code :-) Such code should

Re: [Zope] Automatic Cataloging

2007-06-09 Thread Andreas Jung
--On 9. Juni 2007 14:09:15 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> wrote: Hi, I have a zCatalog installed and I'm trying to automatically catalog an object and it's properties using: What a dirty code :-) Such code should be written using a PythonScript: newob = container.manage

[Zope] Automatic Cataloging

2007-06-09 Thread Tom Von Lahndorff
Hi, I have a zCatalog installed and I'm trying to automatically catalog an object and it's properties using: The zCatalog has indexes and metadata: business_name business_company business_street business_town business_county business_state business_zipcode business_phone business_website