[Zope] Need ZCatalog help
John Goerzen
jgoerzen@complete.org
14 Sep 1999 11:28:00 -0500
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.