Work in progress with users and organizations

This commit is contained in:
2015-08-31 17:45:29 +02:00
parent 3bf9dccfa6
commit b75482b0d6
4 changed files with 401 additions and 124 deletions

View File

@@ -182,7 +182,11 @@ def convert_properties(properties, node_schema):
properties[prop] = datetime.strptime(prop_val, RFC1123_DATE_FORMAT)
elif prop_type == 'objectid':
prop_val = properties[prop]
properties[prop] = ObjectId(prop_val)
if prop_val:
properties[prop] = ObjectId(prop_val)
else:
properties[prop] = None
return properties