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))
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