コード例 #1
0
ファイル: __init__.py プロジェクト: marekventur/Website
 def hidden_tag_without(self, *fields):
     fields = [
         isinstance(f, string_types) and getattr(self, f) or f
         for f in fields
     ]
     keep_fields = [f for f in self if _is_hidden(f) and f not in fields]
     return BaseForm.hidden_tag(self, *keep_fields)
コード例 #2
0
 def hidden_tag_without(self, *exclude_fields):
     fields = [
         getattr(self, f) if isinstance(f, string_types) else f
         for f in exclude_fields
     ]
     keep_fields = [f for f in self if _is_hidden(f) and f not in fields]
     return BaseForm.hidden_tag(self, *keep_fields)
コード例 #3
0
ファイル: forms.py プロジェクト: emfcamp/Website
 def hidden_tag_without(self, *exclude_fields):
     fields = [getattr(self, f) if isinstance(f, string_types) else f for f in exclude_fields]
     keep_fields = [f for f in self if _is_hidden(f) and f not in fields]
     return BaseForm.hidden_tag(self, *keep_fields)
コード例 #4
0
ファイル: forms.py プロジェクト: opatut/mini
 def hidden_tag(self, *args, **kwargs):
     self.form_name.data = self._form_name
     return Form.hidden_tag(self, *args, **kwargs)
コード例 #5
0
ファイル: __init__.py プロジェクト: Paul2d/Website
 def hidden_tag_without(self, *fields):
     fields = [isinstance(f, string_types) and getattr(self, f) or f for f in fields]
     keep_fields = [f for f in self if _is_hidden(f) and f not in fields]
     return BaseForm.hidden_tag(self, *keep_fields)
コード例 #6
0
 def hidden_tag(self, *args, **kwargs):
     self.form_name.data = self._form_name
     return Form.hidden_tag(self, *args, **kwargs)