Validators
audit_repo_exists(value, context)
Check if the repository with the given name is registered.
PARAMETER | DESCRIPTION |
---|---|
value
|
The repository name.
TYPE:
|
context
|
The CKAN context.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Any
|
The repository name if it exists.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
Invalid
|
If the repository does not exist. |
Source code in ckanext/event_audit/logic/validators.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|