manual cataloging
by
kedai
—
last modified
Oct. 13, 04 09:01 PM
Sometimes, we need to manually catalog objects in Zope. With Zope, that's actually quite easy.
As Dieter Maurer always says, whatever the ZMI can do, we can emulate that.
Following that advice, go to Catalog, and click the "Find and Catalog" tab
Fill in the necessary fields and look at the URL location in your browser. It should be something similar:
http://10.11.1.2:8080/some/path/Catalog/manage_catalogFoundItems?obj_metatypes%3Alist=all&obj_ids%3Atokens=&obj_searchterm=&obj_expr=&obj_mspec=%3E&obj_mtime=2004%2F10%2F13&obj_permission=Add+Artikels&search_sub%3Aint=1&btn_submit=Find+and+Catalog
Now to actually call that url? lynx or wget or curl, or even pythons urllib(2) coud do it.
As an example, put this in crontab, and we can find and catalog object ever n sec/min/etc
hope this helps someone