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

All Samples(30)  |  Call(30)  |  Derive(0)  |  Import(0)

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_collector.py   ftw.lawgiver(Download)
                'zope2.View': 'View'})
 
        self.map_permissions(['View'], 'view')
        self.map_permissions(['Add portal content'], 'edit')
 
    def test_get_grouped_permissions_NON_DEFAULT(self):
        self.register_permissions(**{'zope2.View': 'View'})
        self.map_permissions(['View'], 'view', workflow_name='foo')
 
        self.assertEquals({}, self.collector.get_grouped_permissions('bar'))
                'zope2.View': 'View'})
 
        self.map_permissions(['View'], 'view', workflow_name='foo')
        self.map_permissions(['Add portal content'], 'edit')
 

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_integration.py   ftw.lawgiver(Download)
                })
 
        self.map_permissions(['View', 'Access contents information'], 'view')
        self.map_permissions(['Modify portal content'], 'edit')
        self.map_permissions(['Delete objects'], 'delete')
        self.map_permissions(['Add portal content',
                              'ATContentTypes: Add Image'],
                             'add')
        self.map_permissions(['Access future portal content'], 'view future')

src/f/t/ftw.lawgiver-1.2.2/ftw/lawgiver/tests/test_generator_unit.py   ftw.lawgiver(Download)
        # The IActionGroupRegistry utility registration is lazy.
        # Map a fake permission so that the utility is registered.
        self.map_permissions(['__fake_permission__'],
                             '__force_registry_registration__')
 
                'cmf.ManagePortal': 'Manage portal'})
 
        self.map_permissions(['View', 'Access contents information'], 'view')
        self.map_permissions(['Modify portal content'], 'edit')
        self.map_permissions(['Manage portal'], 'manage')
                    'Access contents information'})
 
        self.map_permissions(['View', 'Access contents information'], 'view')
        self.map_permissions(['Modify portal content'], 'edit')