示例#1
0
 def __init__(self, *args, ** kwargs):
     Form.__init__(self, *args, ** kwargs)
     self.user = None
示例#2
0
 def __init__(self, *args, **kwargs):
     Form.__init__(self, *args, **kwargs)
     if not self.next.data:
         self.next.data = get_redirect_target() or ''
示例#3
0
文件: forms.py 项目: tomik/honey
 def __init__(self, *a, **k):
     Form.__init__(self, *a, **k)
     self.sgf = None
示例#4
0
文件: forms.py 项目: tomik/honey
 def __init__(self, *a, **k):
     Form.__init__(self, *a, **k)
     self.short_path = None
示例#5
0
文件: forms.py 项目: tomik/honey
 def __init__(self, *a, **k):
     Form.__init__(self, *a, **k)
     self.user = None
 def __init__(self, *args, **kwargs):
     Form.__init__(self, *args, **kwargs)
     if not self.next.data:
         self.next.data = get_redirect_target() or ''
示例#7
0
 def __init__(self, *args, **kwargs):
     kwargs['csrf_enabled'] = False
     Form.__init__(self, *args, **kwargs)
示例#8
0
文件: base.py 项目: gsk727/git
 def __init__(self):
     Form.__init__(self, id="frmUpdate")
示例#9
0
    def __init__(self, formdata=None, obj=None, prefix='', **kwargs):
        agent_type_id = AgentType.query.filter_by(name=obj['agent_type']).one().agent_type_id
        kwargs.setdefault('agent_type', agent_type_id)

        Form.__init__(self, formdata, obj, prefix, **kwargs)