[Zope] Re: Zope.org feedback

Peter Bengtsson mail@peterbe.com
Wed, 19 Sep 2001 23:54:09 +0200


> URL: http://www.zope.org/Members/peterbe/SiteTrackerProduct
> Hello,
>
> I have followed the installation instructions and have also installed the
required products.
> Still I get this error when trying to add a SiteTracker instance:
>
> Error Type: AttributeError
> Error Value: Indexes

When you create an instance there's a little script that does things to the
ZCatalog you just created.

"setZCatalogProperties" is the name of the Python Script that does all this.
Try having a look at that.
The strange thing is that this was working fine for me. Probably some
problem with security rights and stuff like that. Very strange.
Have a look at the code and see if you can solve it.

Please report any progress back to me and I'll try to help you more.
Where do you try to create the instance? In the root?


> And the last lines of the traceback gives this:
> File <string>, line 2, in f
>     (Object: guarded_getitem)
>   File
/usr/local/Zope-2.4.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
>     (Object: setZCatalogProperties)
>   File
/usr/local/Zope-2.4.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in _bindAndExec
>     (Object: setZCatalogProperties)
>   File
/usr/local/Zope-2.4.0-linux2-x86/lib/python/Products/PythonScripts/PythonScr
ipt.py, line 363, in _exec
>     (Object: setZCatalogProperties)
>     (Info: ({'script': <PythonScript instance at 8a30700>, 'context':
<Factory instance at 8a4d130>, 'container': <FactoryDispatcher instance at
890df28>, 'traverse_subpath': []}, ('SiteTracker',), {}, None))
>   File Script (Python), line 3, in setZCatalogProperties
>   File
/usr/local/Zope-2.4.0-linux2-x86/lib/python/AccessControl/ZopeGuards.py,
line 109, in guarded_getattr
>     (Object: LockableItem)
> AttributeError: (see above)
>
> I am using Zope 2.4 (newly installed) ... got any clues ?
> :-)
>
> TIA,
> Gitte Wange
>