Finishing Tests, Cleaning up Static folder

This commit is contained in:
Eibriel
2015-03-12 15:05:10 +01:00
parent 025202df3f
commit 38b4d01581
46 changed files with 138 additions and 5033 deletions

View File

@@ -5,12 +5,13 @@ import random
import string
from eve.io.mongo import Validator
from bson import ObjectId
class ValidateCustomFields(Validator):
def _validate_valid_properties(self, valid_properties, field, value):
node_types = app.data.driver.db['ntypes']
node_types = app.data.driver.db['node_types']
lookup = {}
lookup['_id'] = self.document['node_type']
lookup['_id'] = ObjectId(self.document['node_type'])
node_type = node_types.find_one(lookup)
v = Validator(node_type['dyn_schema'])