Beispiel #1
0
 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)
Beispiel #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)
Beispiel #3
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)
Beispiel #4
0
 def hidden_tag(self, *args, **kwargs):
     self.form_name.data = self._form_name
     return Form.hidden_tag(self, *args, **kwargs)
Beispiel #5
0
 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)
Beispiel #6
0
 def hidden_tag(self, *args, **kwargs):
     self.form_name.data = self._form_name
     return Form.hidden_tag(self, *args, **kwargs)