[CMF-checkins] CVS: Products/CMFDefault - URLTool.py:1.9

Tres Seaver tseaver@zope.com
Tue, 12 Mar 2002 13:15:14 -0500


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv21562/CMFDefault

Modified Files:
	URLTool.py 
Log Message:


- Gave URL tool explicit __roles__, to enable use in 'nocall:'
  expressions.



=== Products/CMFDefault/URLTool.py 1.8 => 1.9 ===
 from utils import _dtmldir
 
+import pdb; pdb.set_trace()
 
 class URLTool (UniqueObject, SimpleItem, ActionProviderBase):
     id = 'portal_url'
@@ -38,6 +39,7 @@
     _actions = []
 
     security = ClassSecurityInfo()
+    security.declareObjectProtected( CMFCorePermissions.View )
 
     manage_options = ( ActionProviderBase.manage_options +
                       ({ 'label' : 'Overview', 'action' : 'manage_overview' }