Beispiel #1
0
 def __init__(self, name, label=None, assignable=True):
     UniqueName.__init__(self, name)
     if label is None:
         label = u'permission_' + text_type(name)
     if isinstance(label, text_type):
         label = _l(label)
     self.label = label
Beispiel #2
0
 def __init__(self, name, label=None, assignable=True):
     UniqueName.__init__(self, name)
     if label is None:
         label = "permission_" + str(name)
     if isinstance(label, str):
         label = _l(label)
     self.label = label
Beispiel #3
0
 def __init__(self, name, label=None, assignable=True):
   UniqueName.__init__(self, name)
   if label is None:
     label = u'permission_' + unicode(name)
   if isinstance(label, unicode):
     label = _l(label)
   self.label = label
Beispiel #4
0
 def __init__(self, name, label=None, assignable=True):
     UniqueName.__init__(self, name)
     if label is None:
         label = u'role_' + unicode(name)
     if isinstance(label, unicode):
         label = _l(label)
     self.label = label
     self.assignable = assignable
Beispiel #5
0
 def __init__(self, name, label=None, assignable=True):
     UniqueName.__init__(self, name)
     if label is None:
         label = "role_" + text_type(name)
     if isinstance(label, text_type):
         label = _l(label)
     self.label = label
     self.assignable = assignable