[ZCM] [ZC] 761/ 4 Resolve "Python Product Object not being accessable through acquisition"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Oct 21 09:43:45 EDT 2003


Issue #761 Update (Resolve) "Python Product Object not being accessable through acquisition"
 Status Resolved, Zope/bug low
To followup, visit:
  http://collector.zope.org/Zope/761

==============================================================
= Resolve - Entry #4 by Brian on Oct 21, 2003 9:43 am

 Status: Accepted => Resolved


________________________________________
= Assign - Entry #3 by Brian on Oct 21, 2003 9:42 am

 Status: Pending => Accepted

 Supporters added: Brian

Fixed on the head, 2.6 and 2.7 branches.
________________________________________
= Comment - Entry #2 by leper on Jul 6, 2003 6:23 am

see issue 338 for a patch to prevent this from happening
________________________________________
= Request - Entry #1 by Anonymous User on Jan 8, 2003 8:29 pm

Python Product Object not being accessable through acquisition
 
  This is a tips for all developers that might run into this problem, it can save you allot of hours trying to figure out.


  Problem:
  
  Python Product objects can't be accessed (not found) when accessed from DTML (or probably others objects as well). 


  Solution:

  I noticed this when implementing a new class [EasyPropertyContainer] (inheriting from a previous base class [EasySyncAware]).

  I tracked it down to one single method in my EasySyncAware and noticed
  that I mispelled 'declarePrivate' with 'declareProtected'.

  I had written:

    security.declareProtected('doSyncronize')

  where i meant:

    security.declarePrivate('doSyncronize')

  Because declareProtected really take two arguments (permission, method name)
  I suppose something went wrong when the class was initilized.
  The result was surely suprising.

  This should be by the InitializeClass() should report
  misformed security declarations.
==============================================================




More information about the Zope-Collector-Monitor mailing list