[ZPatterns] access denied error
Joachim Schmitz
[email protected]
Fri, 10 Aug 2001 12:40:28 +0200 (CEST)
Hi,
this is actually Zo
when trying to add an item to a new created specialist I get:
Traceback (innermost last):
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 223, in publish_module
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 187, in publish
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 175, in publish
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/Zope/__init__.py, line 235, in commit
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/ZODB/Transaction.py, line 300, in commit
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/Agents.py, line 91, in commit
(Object: GTMixin)
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/Agents.py, line 194, in _objectAdded
(Object: GTMixin)
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/Agents.py, line 240, in _notify
(Object: GTMixin)
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/Expressions.py, line 122, in eval
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/DocumentTemplate/DT_Util.py, line 339, in eval
(Object: Catalog . catalog_object ( self , _ . string . join ( self . getPhysicalPath ( ) , '/' ) ))
(Info: _)
File <string>, line 0, in ?
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/Products/ZCatalog/ZCatalog.py, line 429, in catalog_object
(Object: Traversable)
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/Products/ZCatalog/Catalog.py, line 448, in catalogObject
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/SearchIndex/UnTextIndex.py, line 324, in index_object
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/DataSkins.py, line 222, in __get_attr__
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/AttributeProviders.py, line 355, in _AttributeFor
(Object: GAPMixin)
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/AttributeProviders.py, line 343, in _AttributeFor
(Object: GAPMixin)
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/Expressions.py, line 122, in eval
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/DocumentTemplate/DT_Util.py, line 333, in eval
(Object: '%s %s %s' % ( RechnungsNr , KundenNr , fuerText ))
(Info: KundenNr)
File /usr/local/ZopePark/tozo1.aixtraware.de/ZInstanceHome/Products/ZPatterns/Expressions.py, line 53, in validate
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/AccessControl/SecurityManager.py, line 144, in validate
File /usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/AccessControl/ZopeSecurityPolicy.py, line 168, in validate
Unauthorized: KundenNr
the Rack for this specialist has my usual default-skinscript with:
WITH SELF COMPUTE
ST='%s %s %s' % (RechnungsNr,KundenNr,fuerText)
WHEN OBJECT ADDED CALL
Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/'))
WHEN OBJECT DELETED CALL
Catalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/'))
WHEN OBJECT CHANGED CALL
Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/'))
If I leave of the:
with self compute ... line, the error disapears.
all methods have the manager proxy-role.
I have other specialists which use the same setup, and they work with
this line.
Mit freundlichen Grüßen
Joachim Schmitz
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163