[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLDocument.py:1.51 DTMLMethod.py:1.84

Tres Seaver tseaver at zope.com
Thu Jan 15 17:48:40 EST 2004


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv20616

Modified Files:
	DTMLDocument.py DTMLMethod.py 
Log Message:


  - Disentangle permission settings for related classes (merge from 2.6
    / 2.7 audit).


=== Zope/lib/python/OFS/DTMLDocument.py 1.50 => 1.51 ===
--- Zope/lib/python/OFS/DTMLDocument.py:1.50	Tue Jul  8 14:27:41 2003
+++ Zope/lib/python/OFS/DTMLDocument.py	Thu Jan 15 17:48:40 2004
@@ -45,16 +45,11 @@
         PropertyManager.manage_options +
         DTMLMethod.manage_options[2:]
         )
-
+    
+    ps = DTMLMethod.__ac_permissions__
     __ac_permissions__=(
-        ('Change DTML Documents',
-         ('manage_editForm', 'manage', 'manage_main',
-          'manage_edit', 'manage_upload', 'PUT',
-          'manage_historyCopy',
-          'manage_beforeHistoryCopy', 'manage_afterHistoryCopy',
-          )
-         ),
-        )
+        ps[0], ('Change DTML Documents', ps[1][1]), ps[2], ps[3], ps[4])
+    del ps
 
     def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='100%',
                     dtpref_rows='20',REQUEST=None):


=== Zope/lib/python/OFS/DTMLMethod.py 1.83 => 1.84 ===
--- Zope/lib/python/OFS/DTMLMethod.py:1.83	Tue Nov 18 08:17:02 2003
+++ Zope/lib/python/OFS/DTMLMethod.py	Thu Jan 15 17:48:40 2004
@@ -73,6 +73,7 @@
         +Cacheable.manage_options
         )
 
+    # Careful in changes--used by DTMLDocument!
     __ac_permissions__=(
     ('View management screens',
      ('document_src', 'PrincipiaSearchSource')),




More information about the Zope-Checkins mailing list