Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
8306e291
Commit
8306e291
authored
Jan 21, 2016
by
LE GAC Renaud
Browse files
Sphinxify my_validators.py.
parent
69db1105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/my_validators.py
modules/my_validators.py
+9
-4
No files found.
modules/my_validators.py
View file @
8306e291
""" custom validators and correctors.
@author: R. Le Gac
""" Custom validators.
"""
from
gluon.validators
import
IS_IN_SET
class
IS_IN_USET
(
IS_IN_SET
):
"""IS_IN_SET validator but working with unicode string.
Args:
theset (list or tuple or dict):
the reference set containing utf-8 strings.
Keyword Args:
**kwargs (dict):
the keyword arguments of the validator ``IS_IN_SET``.
"""
def
__init__
(
self
,
theset
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment