aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-03 11:00:17 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-03 11:00:17 -0500
commit9a30ec32c2f463ad751eb9fc1f9ff98b7d878f59 (patch)
treea45aafcf336a4ec7e6682b3453030b9ba9c0fcc0 /src
parent3861893f9c11e7ad8fbee668a4f39a4bef32b814 (diff)
downloadbbj-9a30ec32c2f463ad751eb9fc1f9ff98b7d878f59.tar.gz
adapt the elisp client to the new API; add some more endpoints
Diffstat (limited to 'src')
-rw-r--r--src/db.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.py b/src/db.py
index 2c1c151..5d53eb2 100644
--- a/src/db.py
+++ b/src/db.py
@@ -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)")
Un proyecto texto-plano.xyz