RE: [Zope] automate Find and Catalog
15 Apr
2003
15 Apr
'03
3:06 p.m.
does anybody know how i can make a link that will automatically find objects and catalog them? so instead of the users doing it manually all they have to do is click the link.
I have a XRONDTMLMethod that makes it automatically every X hours. You could copy the code there in a DTMLMethod and call it when you like (or in a python script, too). This is the piece of code: <dtml-call "catalog.manage_catalogClear()"> <dtml-call "catalog.manage_catalogFoundItems(REQUEST,RESPONSE,URL1,URL1+'/catalog', obj_metatypes=['Folder'])"> 'catalog' is the name of the ZCatalog object, which is located in the same folder as the XRONDTMLMethod. If you want to catalog objects of type 'File', change the 'Folder' for 'File'. Igor Leturia
8392
Age (days ago)
8392
Last active (days ago)
0 comments
1 participants
participants (1)
-
Igor Leturia