[ZCM] [ZC] 1706/ 1 Request "Reading property from ZClass instance"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Thu Feb 17 17:21:41 EST 2005
Issue #1706 Update (Request) "Reading property from ZClass instance"
Status Pending, Zope/bug medium
To followup, visit:
http://zope.org/Collectors/Zope/1706
==============================================================
= Request - Entry #1 by Anonymous User on Feb 17, 2005 5:21 pm
This problem occurs in a project that works perfectly with ZOPE 2.6. After the upgrade to ZOPE 2.7.4 the user is asked for permission when ZClass code references a property defined in a property sheet. A similar problem concerning the change of the property is descibed in issue 1669.
More detailed: A tal command of a ZPT inside a ZClass tries to access a property that is defined in a property sheet of the same ZClass, but is - of course - given a value in the instance of the class. In ZOPE 2.7.4 the user is asked to authenticate, and if he cancels authentication he gets the message:
"Error > Value: You are not allowed to access 'teillisten_laenge' in this context".
where teillisten_laenge is the property in question. This is just one example - the problem seems to occur in all similar cases.
Here's the code fragment that tries to read the value of teillisten_laenge:
<span tal:define="listen_laenge here/propertysheets/listenstil/teillisten_laenge">
<span tal:define="sort_kriterium string:id">
...
</span>
</span>
==============================================================
More information about the Zope-Collector-Monitor
mailing list