diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-03 11:00:17 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-03 11:00:17 -0500 |
commit | 9a30ec32c2f463ad751eb9fc1f9ff98b7d878f59 (patch) | |
tree | a45aafcf336a4ec7e6682b3453030b9ba9c0fcc0 /src | |
parent | 3861893f9c11e7ad8fbee668a4f39a4bef32b814 (diff) | |
download | bbj-9a30ec32c2f463ad751eb9fc1f9ff98b7d878f59.tar.gz |
adapt the elisp client to the new API; add some more endpoints
Diffstat (limited to 'src')
-rw-r--r-- | src/db.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -350,6 +350,10 @@ def validate(keys_and_values): raise BBJUserError( "Titles cannot contain whitespace chars besides spaces.") + elif not value.strip(): + raise BBJUserError( + "Title must contain at least one non-space character") + elif len(value) > 120: raise BBJUserError( "Title is too long (max 120 chars)") |