appier 1.34.11__tar.gz → 1.34.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {appier-1.34.11/src/appier.egg-info → appier-1.34.12}/PKG-INFO +1 -1
- {appier-1.34.11 → appier-1.34.12}/setup.py +1 -1
- {appier-1.34.11 → appier-1.34.12}/src/appier/__init__.py +1 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/validation.py +13 -0
- {appier-1.34.11 → appier-1.34.12/src/appier.egg-info}/PKG-INFO +1 -1
- {appier-1.34.11 → appier-1.34.12}/MANIFEST.in +0 -0
- {appier-1.34.11 → appier-1.34.12}/README.rst +0 -0
- {appier-1.34.11 → appier-1.34.12}/pyproject.toml +0 -0
- {appier-1.34.11 → appier-1.34.12}/setup.cfg +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/amqp.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/api.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/asgi.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/async_neo.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/async_old.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/asynchronous.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/asynchronous.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/base.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/base.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/bus.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/bus.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/cache.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/cache.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/common.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/component.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/component.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/compress.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/config.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/controller.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/crypt.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/data.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/data.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/defines.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/exceptions.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/execution.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/export.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/extra.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/extra_neo.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/extra_old.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/geo.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/git.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/graph.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/http.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/legacy.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/log.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/meta.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/mock.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/model.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/model.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/model_a.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/mongo.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/observer.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/part.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/part.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/preferences.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/preferences.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/queuing.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/redisdb.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/request.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/res/static/css/base.css +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/res/static/images/favicon.ico +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/res/static/js/base.js +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/res/templates/error.html.tpl +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/res/templates/holder.html.tpl +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/res/templates/layout.html.tpl +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/scheduler.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/scheduler.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/serialize.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/session.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/session.pyi +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/settings.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/smtp.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/storage.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/structures.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/__init__.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/base.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/cache.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/config.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/crypt.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/data.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/error_handler.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/exception_handler.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/exceptions.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/export.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/graph.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/http.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/legacy.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/log.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/mock.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/model.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/part.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/preferences.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/queuing.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/request.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/scheduler.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/serialize.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/session.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/smtp.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/structures.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/tags.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/typesf.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/util.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/test/validation.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/typesf.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier/util.py +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier.egg-info/SOURCES.txt +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier.egg-info/dependency_links.txt +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier.egg-info/not-zip-safe +0 -0
- {appier-1.34.11 → appier-1.34.12}/src/appier.egg-info/top_level.txt +0 -0
|
@@ -151,6 +151,19 @@ def safe(comparison):
|
|
|
151
151
|
return False
|
|
152
152
|
|
|
153
153
|
|
|
154
|
+
def custom(name, callable, message="value is not valid", locale=True):
|
|
155
|
+
def validation(object, ctx):
|
|
156
|
+
value = object.get(name, None)
|
|
157
|
+
if value == None:
|
|
158
|
+
return True
|
|
159
|
+
if callable(value):
|
|
160
|
+
return True
|
|
161
|
+
message_l = _to_locale(message) if locale else message
|
|
162
|
+
raise exceptions.ValidationInternalError(name, message_l)
|
|
163
|
+
|
|
164
|
+
return validation
|
|
165
|
+
|
|
166
|
+
|
|
154
167
|
def eq(name, value_c, message="must be equal to %s", locale=True):
|
|
155
168
|
def validation(object, ctx):
|
|
156
169
|
value = object.get(name, None)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|