Python wtforms.fields.TextField() Examples
The following are 27
code examples of wtforms.fields.TextField().
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 RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_PGUuid(self, field_args, **extra): field_args.setdefault('label', 'UUID') field_args['validators'].append(validators.UUID()) return f.TextField(**field_args)
Example #2
Source File: db.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def get_TextField(kwargs): """ Returns a ``TextField``, applying the ``db.StringProperty`` length limit of 500 bytes. """ kwargs['validators'].append(validators.length(max=500)) return f.TextField(**kwargs)
Example #3
Source File: ndb.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def get_TextField(kwargs): """ Returns a ``TextField``, applying the ``ndb.StringProperty`` length limit of 500 bytes. """ kwargs['validators'].append(validators.length(max=500)) return f.TextField(**kwargs)
Example #4
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_URLField(self, model, field, kwargs): kwargs['validators'].append(validators.url()) return f.TextField(**kwargs)
Example #5
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_IPAddressField(self, model, field, kwargs): kwargs['validators'].append(validators.ip_address()) return f.TextField(**kwargs)
Example #6
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_PGUuid(self, field_args, **extra): field_args.setdefault('label', 'UUID') field_args['validators'].append(validators.UUID()) return f.TextField(**field_args)
Example #7
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_PGMacaddr(self, field_args, **extra): field_args.setdefault('label', 'MAC Address') field_args['validators'].append(validators.MacAddress()) return f.TextField(**field_args)
Example #8
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_PGInet(self, field_args, **extra): field_args.setdefault('label', 'IP Address') field_args['validators'].append(validators.IPAddress()) return f.TextField(**field_args)
Example #9
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_MSYear(self, field_args, **extra): field_args['validators'].append(validators.NumberRange(min=1901, max=2155)) return f.TextField(**field_args)
Example #10
Source File: orm.py From googleapps-message-recall with Apache License 2.0 | 5 votes |
def conv_String(self, field_args, **extra): self._string_common(field_args=field_args, **extra) return f.TextField(**field_args)
Example #11
Source File: db.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def get_TextField(kwargs): """ Returns a ``TextField``, applying the ``db.StringProperty`` length limit of 500 bytes. """ kwargs['validators'].append(validators.length(max=500)) return f.TextField(**kwargs)
Example #12
Source File: ndb.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def get_TextField(kwargs): """ Returns a ``TextField``, applying the ``ndb.StringProperty`` length limit of 500 bytes. """ kwargs['validators'].append(validators.length(max=500)) return f.TextField(**kwargs)
Example #13
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_URLField(self, model, field, kwargs): kwargs['validators'].append(validators.url()) return f.TextField(**kwargs)
Example #14
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_IPAddressField(self, model, field, kwargs): kwargs['validators'].append(validators.ip_address()) return f.TextField(**kwargs)
Example #15
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_String(self, field_args, **extra): self._string_common(field_args=field_args, **extra) return f.TextField(**field_args)
Example #16
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_PGMacaddr(self, field_args, **extra): field_args.setdefault('label', 'MAC Address') field_args['validators'].append(validators.MacAddress()) return f.TextField(**field_args)
Example #17
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_PGInet(self, field_args, **extra): field_args.setdefault('label', 'IP Address') field_args['validators'].append(validators.IPAddress()) return f.TextField(**field_args)
Example #18
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_MSYear(self, field_args, **extra): field_args['validators'].append(validators.NumberRange(min=1901, max=2155)) return f.TextField(**field_args)
Example #19
Source File: orm.py From RSSNewsGAE with Apache License 2.0 | 5 votes |
def conv_String(self, field_args, **extra): self._string_common(field_args=field_args, **extra) return f.TextField(**field_args)
Example #20
Source File: db.py From jbox with MIT License | 5 votes |
def get_TextField(kwargs): """ Returns a ``TextField``, applying the ``db.StringProperty`` length limit of 500 bytes. """ kwargs['validators'].append(validators.length(max=500)) return f.TextField(**kwargs)
Example #21
Source File: ndb.py From jbox with MIT License | 5 votes |
def get_TextField(kwargs): """ Returns a ``TextField``, applying the ``ndb.StringProperty`` length limit of 500 bytes. """ kwargs['validators'].append(validators.length(max=500)) return f.TextField(**kwargs)
Example #22
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_URLField(self, model, field, kwargs): kwargs['validators'].append(validators.url()) return f.TextField(**kwargs)
Example #23
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_IPAddressField(self, model, field, kwargs): kwargs['validators'].append(validators.ip_address()) return f.TextField(**kwargs)
Example #24
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_PGUuid(self, field_args, **extra): field_args.setdefault('label', 'UUID') field_args['validators'].append(validators.UUID()) return f.TextField(**field_args)
Example #25
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_PGMacaddr(self, field_args, **extra): field_args.setdefault('label', 'MAC Address') field_args['validators'].append(validators.MacAddress()) return f.TextField(**field_args)
Example #26
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_PGInet(self, field_args, **extra): field_args.setdefault('label', 'IP Address') field_args['validators'].append(validators.IPAddress()) return f.TextField(**field_args)
Example #27
Source File: orm.py From jbox with MIT License | 5 votes |
def conv_MSYear(self, field_args, **extra): field_args['validators'].append(validators.NumberRange(min=1901, max=2155)) return f.TextField(**field_args)