Exemple #1
0
 def validate(value):
     if not utils.is_name_safe(value):
         raise exception.InvalidName(name=value)
     return value
Exemple #2
0
 def validate(value):
     if not utils.is_name_safe(value):
         raise exception.InvalidName(name=value)
     return value