Exemplo n.º 1
0
 def split(self, app, userpath):
     parts = userpath.split("/")
     username = parts[-1]
     path = parts[:-1]
     if path[0] == '':
         path = path[1:]
     acl_users = util.unrestrictedTraverse(app, path)
     if ':' in username:
         username, password = username.split(":", 1)
     else:
         password = "******"
     return acl_users, username, password
Exemplo n.º 2
0
 def refang(self, app):
     self.imports()
     obj = util.unrestrictedTraverse(app, self.path)
     mutator = getattr(obj, self.mutator)
     mutator(self.live)