[CMF-checkins] CVS: CMF/CMFTopic - Topic.py:1.38
Yvo Schubbe
schubbe at web.de
Tue Jan 13 05:19:47 EST 2004
Update of /cvs-repository/CMF/CMFTopic
In directory cvs.zope.org:/tmp/cvs-serv13323/CMFTopic
Modified Files:
Topic.py
Log Message:
cleanup:
- synced fti icon key with other ftis
- removed _verifyActionPermissions cruft
=== CMF/CMFTopic/Topic.py 1.37 => 1.38 ===
--- CMF/CMFTopic/Topic.py:1.37 Mon Jan 12 05:53:09 2004
+++ CMF/CMFTopic/Topic.py Tue Jan 13 05:19:47 2004
@@ -30,7 +30,7 @@
# with the Types Tool (portal_types )
factory_type_information = (
{ 'id' : 'Topic'
- , 'content_icon' : 'topic_icon.gif'
+ , 'icon' : 'topic_icon.gif'
, 'meta_type' : 'Portal Topic'
, 'description' : 'Topics are canned queries for organizing content '
'with up to date queries into the catalog.'
@@ -87,23 +87,11 @@
meta_type='Portal Topic'
security = ClassSecurityInfo()
-
security.declareObjectProtected(View)
acquireCriteria = 1
_criteriaTypes = []
-
- security.declarePrivate( '_verifyActionPermissions' )
- def _verifyActionPermissions( self, action ):
- pp = action.get( 'permissions', () )
- if not pp:
- return 1
- for p in pp:
- if _checkPermission( p, self ):
- return 1
- return 0
-
def __call__( self ):
"""
Invoke the default action.
@@ -262,5 +250,4 @@
ti.constructInstance(self, id)
return self._getOb( id )
-# Intialize the Topic class, setting up security.
InitializeClass( Topic )
More information about the CMF-checkins
mailing list