Beispiel #1
0
 def __init__(self, *args, **kwargs):
     SchemaDocument.__init__(self, *args, **kwargs)
     for key, value in self.default_values.iteritems():
         self.setdefault(key, value_or_result(value))
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     SchemaDocument.__init__(self, *args, **kwargs)
     for key, value in self.default_values.iteritems():
         self.setdefault(key, value_or_result(value))
     if self.write_concern_override is not None:
         self.collection.write_concern = self.write_concern_override