[Zope3-checkins] SVN: Zope3/trunk/doc/CHANGES.txt Add description of canWrite and canAccess security convenience methods.

Gary Poster gary at zope.com
Tue Jan 25 09:32:36 EST 2005


Log message for revision 28955:
  Add description of canWrite and canAccess security convenience methods.
  
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2005-01-25 14:03:34 UTC (rev 28954)
+++ Zope3/trunk/doc/CHANGES.txt	2005-01-25 14:32:36 UTC (rev 28955)
@@ -10,6 +10,15 @@
 
     New features
 
+      - Added `zope.security.canAccess` and `zope.security.canWrite`
+        convenience methods.  Often code wants to check if a certain option is 
+        open to a user before presenting it.  If the code relies on a certain
+        permission, the Zope 3 goal of keeping knowledge of security  
+        assertions out of the code and only in configuration is broken. 
+        Instead, ask if the current intreaction canAccess or canWrite some 
+        pertinent aspect of the object.  canAccess is used for both read 
+        access on an attribute and call access to methods.
+
       - Added lazy properties. (See zope/cachedescriptors/README.txt)
 
       - Added new `getNextUtility()`, `queryNextUtility()`, and



More information about the Zope3-Checkins mailing list