Python wtforms.fields.TextAreaField() Examples
The following are 12
code examples of wtforms.fields.TextAreaField().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wtforms.fields
, or try the search function
.
Example #1
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_Text(self, field_args, **extra): self._string_common(field_args=field_args, **extra) return f.TextAreaField(**field_args)
Example #2
Source File: ndb.py From jbox with MIT License | 5 votes |
def convert_TextProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.TextProperty``.""" return f.TextAreaField(**kwargs)
Example #3
Source File: db.py From jbox with MIT License | 5 votes |
def convert_StringProperty(model, prop, kwargs): """Returns a form field for a ``db.StringProperty``.""" if prop.multiline: kwargs['validators'].append(validators.length(max=500)) return f.TextAreaField(**kwargs) else: return get_TextField(kwargs)
Example #4
Source File: db.py From jbox with MIT License | 5 votes |
def convert_TextProperty(model, prop, kwargs): """Returns a form field for a ``db.TextProperty``.""" return f.TextAreaField(**kwargs)
Example #5
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_Text(self, field_args, **extra): self._string_common(field_args=field_args, **extra) return f.TextAreaField(**field_args)
Example #6
Source File: ndb.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def convert_TextProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.TextProperty``.""" return f.TextAreaField(**kwargs)
Example #7
Source File: db.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def convert_StringProperty(model, prop, kwargs): """Returns a form field for a ``db.StringProperty``.""" if prop.multiline: kwargs['validators'].append(validators.length(max=500)) return f.TextAreaField(**kwargs) else: return get_TextField(kwargs)
Example #8
Source File: db.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def convert_TextProperty(model, prop, kwargs): """Returns a form field for a ``db.TextProperty``.""" return f.TextAreaField(**kwargs)
Example #9
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_Text(self, field_args, **extra): self._string_common(field_args=field_args, **extra) return f.TextAreaField(**field_args)
Example #10
Source File: ndb.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def convert_TextProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.TextProperty``.""" return f.TextAreaField(**kwargs)
Example #11
Source File: db.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def convert_StringProperty(model, prop, kwargs): """Returns a form field for a ``db.StringProperty``.""" if prop.multiline: kwargs['validators'].append(validators.length(max=500)) return f.TextAreaField(**kwargs) else: return get_TextField(kwargs)
Example #12
Source File: db.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def convert_TextProperty(model, prop, kwargs): """Returns a form field for a ``db.TextProperty``.""" return f.TextAreaField(**kwargs)