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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Check whether the user has access to object. The user must
have one of the roles in object_roles to allow access.

src/z/o/Zope2-2.13.22/src/OFS/SimpleItem.py   Zope2(Download)
 
            if nobody.allowed(
                self.manage_FTPget,
                getRoles(self, 'manage_FTPget', self.manage_FTPget, ()),
                ):
 
            if nobody.allowed(
                self.PUT,
                getRoles(self, 'PUT', self.PUT, ()),
                ):

src/z/o/Zope-HEAD/src/OFS/SimpleItem.py   Zope(Download)
 
            if nobody.allowed(
                self.manage_FTPget,
                getRoles(self, 'manage_FTPget', self.manage_FTPget, ()),
                ):
 
            if nobody.allowed(
                self.PUT,
                getRoles(self, 'PUT', self.PUT, ()),
                ):

src/z/o/Zope2-2.13.22/src/OFS/ObjectManager.py   Zope2(Download)
 
            if nobody.allowed(
                self,
                getRoles(self, 'manage_FTPlist', self.manage_FTPlist, ())):
                mode=mode | 0007

src/z/o/Zope-HEAD/src/OFS/ObjectManager.py   Zope(Download)
 
            if nobody.allowed(
                self,
                getRoles(self, 'manage_FTPlist', self.manage_FTPlist, ())):
                mode=mode | 0007