Martijn Pieters <mj@antraciet.nl> writes: OK, I managed to pull up manage_editCatalogerForm. However, there are two concerns: 1) It didn't require me to log in as a manager to use it!!! 2) After I'd type in a new value, even as manager, it would give me a TypeError on REQUEST. Traceback is: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 201, in zpublisher_exception_hook (Object: CatalogAware) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_editCataloger) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_editCataloger) File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 109, in manage_editCataloger (Object: CatalogAware) NameError: (see above)
At 01:40 13/09/99 , John Goerzen wrote:
Martijn Pieters <mj@antraciet.nl> writes:
If it is the first item, it'll catalog itself by default in the catalog named, surprisingly, 'Catalog'. This default can be changed by calling setting default_catalog on the object, or calling 'manage_editCatalogerForm' on the object for a visual interface (in a browser).
I can't seem to make this work. Is this supposed to be called under the Products area? In the PropertySheets area? For each individual object? If the last, how can I set the default for all the objects? Can you give me a sample URL to use?
This is an instance variable so you need to call it on an individual object. To set a default for all objects, you can set default_catalog on a newly created instance with the DTML method that creates an instance.
-- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
-- John Goerzen Linux, Unix consulting & programming jgoerzen@complete.org | Developer, Debian GNU/Linux (Free powerful OS upgrade) www.debian.org | ----------------------------------------------------------------------------+ The 87,208,086th prime number is 1,764,772,043.
I have been following this thread with quite some interest, as I'm basically trying to get the same things to work :) happily, I've got a ZClass working with auto-adding to a catalogue called 'Catalog' in the same directory as I dtml-create the ZClass objects, however, I've noticed one strange thing (which I'm sure is my fault..) - when a new item gets auto-added, the ZSearch I have in that same directory suddenly only finds one item in the ZCatalogue, and NONE of the meta-data is there, only the ID (and modification time), however, all gets fixed if I open the ZCatalogue in manage and do an update of it's catalogues objects.. Could someone please tell me what I'm going wrong???? I would have expected the auto-adding feature (which is basically working) to just make this happen smoothly, as it is presented as a totally automatic system (which is good) :) ------------------------------------------------------------ Stuart Woolford, stuartw@newmail.net Unix Consultant. Software Developer. Supra Club of New Zealand. ------------------------------------------------------------
participants (2)
-
John Goerzen -
Stuart Woolford