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

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

src/p/r/Products.CMFPlomino-1.18.6/Products/CMFPlomino/PlominoAccessControl.py   Products.CMFPlomino(Download)
        try:
            userid = self.getCurrentUserId()
            rights = self.get_local_roles_for_userid(userid)
 
            # we append group rights
            groupstool = self.portal_groups
            usergroups = [g.id for g in groupstool.getGroupsByUserId(userid)]
            for g in usergroups:
                rights = rights + self.get_local_roles_for_userid(g)

src/p/l/Plomino-HEAD/Products/CMFPlomino/PlominoAccessControl.py   Plomino(Download)
        try:
            userid = self.getCurrentUserId()
            rights = self.get_local_roles_for_userid(userid)
 
            # we append group rights
            groupstool = self.portal_groups
            usergroups = [g.id for g in groupstool.getGroupsByUserId(userid)]
            for g in usergroups:
                rights = rights + self.get_local_roles_for_userid(g)