Changeset 48


Ignore:
Timestamp:
01/10/06 10:52:46 (14 years ago)
Author:
vahur
Message:

CMFCore.CMFCorePermissions is deprecated

Location:
trunk
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ToolboxSearchTool.py

    r47 r48  
    88import xmlrpclib 
    99from Acquisition import aq_base 
     10from config import MANAGE_PORTAL 
    1011 
    1112class ToolboxSearchTool(PropertyManager, SimpleItem, UniqueObject): 
     
    137138        return "pong" 
    138139 
     140    security.declareProtected(MANAGE_PORTAL, 'manage_changeLocations') 
     141    def manage_setLocations(self, locations): 
     142        """ set remote search locations and protocols """ 
     143        return 0 
     144 
    139145InitializeClass(ToolboxSearchTool) 
  • trunk/config.py

    r47 r48  
    1 from Products.CMFCore import CMFCorePermissions 
     1from Products.CMFCore import permissions 
    22from types import UnicodeType 
    33 
    4 ADD_CONTENT_PERMISSION = CMFCorePermissions.AddPortalContent 
     4ADD_CONTENT_PERMISSION = permissions.AddPortalContent 
     5MANAGE_PORTAL = permissions.ManagePortal 
    56 
    67# Must match the folder in Products/ where this product is installed 
Note: See TracChangeset for help on using the changeset viewer.