Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/db/routes.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-09-15 09:34:02 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-09-15 09:34:02 (GMT)
commit750bd01dd00af01d3f68df43882a09d837d337a3 (patch)
treed361cddf386a0a0c58dd4f0bb183e9d4cbe0708d /sugar_network/db/routes.py
parentca90fccc05475bd63d3532bddba4f482b4e00451 (diff)
Set default property values if it was passed with None
Diffstat (limited to 'sugar_network/db/routes.py')
-rw-r--r--sugar_network/db/routes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network/db/routes.py b/sugar_network/db/routes.py
index 197c215..7a4b582 100644
--- a/sugar_network/db/routes.py
+++ b/sugar_network/db/routes.py
@@ -201,7 +201,7 @@ class Routes(object):
if access == ACL.CREATE:
for name, prop in directory.metadata.items():
if not isinstance(prop, BlobProperty) and \
- name not in content and \
+ content.get(name) is None and \
(prop.default is not None or prop.on_set is not None):
doc[name] = prop.default