示例#1
0
 def __init__(self, resource=None, role=None, group=None):
     Base.__init__(self)
     if resource is not None:
         self.resource = resource
     if role is not None:
         self.role = role
     if group is not None:
         self.group = group
示例#2
0
 def __init__(self, resource=None, role=None, user=None):
     Base.__init__(self)
     if resource is not None:
         self.resource = resource
     if role is not None:
         self.role = role
     if user is not None:
         self.user = user