Exemplo n.º 1
0
 def process_formdata(self, valuelist):
     self.data = []
     for name in valuelist:
         role = datastore.find_role(name)
         if role is not None:
             self.data.append(role)
         else:
             raise validators.ValidationError(
                 _('The role {role} does not exist').format(role=name))
Exemplo n.º 2
0
 def process_formdata(self, valuelist):
     self.data = []
     for name in valuelist:
         role = datastore.find_role(name)
         if role is not None:
             self.data.append(role)
         else:
             raise validators.ValidationError(
                 _('The role {role} does not exist').format(role=name))