示例#1
0
文件: form.py 项目: rafal-kos/pytis
 def validate_pattern(form, field):
     if not Document.is_pattern_valid(field.data):
         raise ValidationError(u'Podano nieprawidłowy wzorzec')
示例#2
0
 def before_insert(self, mapper, connection, instance):        
     Document.obtain_number(instance)