Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(11)  |  Derive(0)  |  Import(8)

src/p/r/Products.PloneHelpCenter-4.0/Products/PloneHelpCenter/config.py   Products.PloneHelpCenter(Download)
except ImportError:
    from Products.CMFCore.CMFCorePermissions import AddPortalContent
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
 
ADD_CENTER_PERMISSION = 'PloneHelpCenter: Add Plone Help Center'
# Let members by default be allowed to add documentation, and managers only
# be able to add new documentation areas
setDefaultRoles(ADD_CENTER_PERMISSION, ('Manager',))
setDefaultRoles(ADD_HELP_AREA_PERMISSION, ('Manager', 'Owner',))
setDefaultRoles(ADD_DOCUMENTATION_PERMISSION, ('Manager', 'Member',))

src/p/r/Products.kupu-1.5.2/Products/kupu/plone/permissions.py   Products.kupu(Download)
except ImportError:
    # for CMF 1.4
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
 
QueryLibraries = "Kupu: Query libraries"
ManageLibraries = "Kupu: Manage libraries"
 
# Set up default roles for permissions
setDefaultRoles(QueryLibraries, ('Manager', 'Site Administrator', 'Authenticated'))
setDefaultRoles(ManageLibraries, ('Manager', 'Site Administrator', 'Authenticated'))

src/p/r/Products.SimplePortlet-1.2/Products/SimplePortlet/Permissions.py   Products.SimplePortlet(Download)
# BBB for CMF < 2.1
try:
    from Products.CMFCore.permissions import setDefaultRoles
except ImportError:
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
MANAGE_LAYOUT_PERMISSION = 'SimplePortlet: Manage Portlet Layout'
 
setDefaultRoles(ADD_CONTENTS_PERMISSION, ('Manager', 'Owner', ))
setDefaultRoles(MANAGE_LAYOUT_PERMISSION, ('Manager', 'Owner', ))
 

src/p/r/Products.ATGoogleVideo-0.9.1/Products/ATGoogleVideo/config.py   Products.ATGoogleVideo(Download)
# BBB for CMF 1.4
try:
    from Products.CMFCore.permissions import setDefaultRoles
except ImportError:
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
DEFAULT_ADD_CONTENT_PERMISSION = "Add Google Video"
 
setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner',))
 
# Flash video quality

src/p/r/Products.ATPhoto-1.0/Products/ATPhoto/config.py   Products.ATPhoto(Download)
    from Products.CMFCore.permissions import setDefaultRoles
except ImportError:
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
 
PROJECTNAME = "ATPhoto"
# Permissions
DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
 
product_globals=globals()

src/i/s/iscorpio.plonepm-2.0beta2-r382/iscorpio/plonepm/permissions.py   iscorpio.plonepm(Download)
        # The permission name and the access permit at each roll 
        # corresponding to the permission name is set to CMFCore.
        CMFCorePermissions.setDefaultRoles(permission, ('Manager','Owner'))
 
    return permissions

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/permissions.py   Products.CacheSetup(Download)
            permission = "%s: Add %s" % (config.PROJECT_NAME,
                                         portal_type)
            cmfcore_permissions.setDefaultRoles(permission, ('Manager',))
        permissions[portal_type] = permission
 

src/p/r/Products.CMFSquidTool-1.5.1/Products/CMFSquidTool/Permissions.py   Products.CMFSquidTool(Download)
    from Products.CMFCore.CMFCorePermissions import ModifyPortalContent
    from Products.CMFCore.CMFCorePermissions import View
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
except:
    from Products.CMFCore.permissions import ManagePortal

src/p/r/Products.SimplePortlet-1.2/Products/SimplePortlet/Extensions/Install.py   Products.SimplePortlet(Download)
    from Products.CMFCore.permissions import setDefaultRoles
except ImportError:
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
 
from Products.SimplePortlet.config import *

src/i/l/ilrt.contentmigrator-1.11/ilrt/contentmigrator/ContentMigrator/__init__.py   ilrt.contentmigrator(Download)
try:
    from Products.CMFCore.permissions import setDefaultRoles
except ImportError:
    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
from Products.CMFCore import utils