[ZCM] [ZC] 1707/ 2 Reject "Reading property from ZClass instance"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Feb 17 18:41:54 EST 2005


Issue #1707 Update (Reject) "Reading property from ZClass instance"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1707

==============================================================
= Reject - Entry #2 by tseaver on Feb 17, 2005 6:41 pm

 Status: Pending => Rejected

Duplicate of #1706.
________________________________________
= Request - Entry #1 by Anonymous User on Feb 17, 2005 5:22 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