[Zope-CMF] getToolByName gives an AttributeError
Gitte Wange
gitte@mmmanager.org
18 Dec 2001 16:00:45 +0100
Hello,
I have a small problem here.
In one of my products I want to use the portal_catalog in order to find
some objects.
So I do this:
from Products.CMFCore.utils import getToolByName
and when getting the catalog I do this:
catalog = getToolByName(self, 'portal_catalog')
But this raises an error (in line 50 of utils.py).
I am using the CVS checkout of CMF - could the error be here ??
--
Gitte Wange Jensen
Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org
ICQ: 26680028
Quote of the day:
I strongly believe that trying to be clever is detrimental to your
health.
- Linus Torvalds