[ZPatterns] access denied error

Steve Spicklemire steve@spvi.com
Fri, 10 Aug 2001 06:32:39 -0500


As you often hear: "If everything is the same, but something's different, then
everything is not the same." ;-)

Looks like it's trying to commit the transaction, firing the catlog trigger,
then having trouble getting to KundenNr. Is anything different about security in
that Specialist? Anything different about the skins?

good luck!
-steve


Joachim Schmitz wrote:
>   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
> 
> _______________________________________________
> ZPatterns mailing list
> ZPatterns@eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/zpatterns