Home
last modified time | relevance | path

Searched refs:model_class (Results 1 – 11 of 11) sorted by relevance

/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/api/map_job/
Dmodel_datastore_input_reader.py93 model_class = util.for_name(entity_kind)
98 if issubclass(model_class, db.Model):
99 cls._validate_filters(filters, model_class)
101 cls._validate_filters_ndb(filters, model_class)
105 def _validate_filters(cls, filters, model_class): argument
123 properties = model_class.properties()
130 prop, model_class.kind())
141 def _validate_filters_ndb(cls, filters, model_class): argument
146 properties = model_class._properties
153 prop, model_class._get_kind())
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/db/
Dquery.py25 def __init__(self, model_class, limit=None, next_token=None, manager=None): argument
26 self.model_class = model_class
32 self.manager = self.model_class._manager
59 return self.manager.count(self.model_class, self.filters, quick, self.sort_by, self.select)
62 … return self.manager._build_filter_part(self.model_class, self.filters, self.sort_by, self.select)
70 xmlmanager = self.model_class.get_xmlmanager()
Dproperty.py74 def __property_config__(self, model_class, property_name): argument
75 self.model_class = model_class
83 …raise TypeError('Validation Error, %s.%s expecting %s, got %s' % (self.model_class.__name__, self.…
92 …raise ValueError('%s not a valid choice for %s.%s' % (value, self.model_class.__name__, self.name))
509 def __property_config__(self, model_class, property_name): argument
510 super(ReferenceProperty, self).__property_config__(model_class, property_name)
512 self.collection_name = '%s_%s_set' % (model_class.__name__.lower(), self.name)
516 _ReverseReferenceProperty(model_class, property_name, self.collection_name))
556 def __get__(self, model_instance, model_class): argument
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Ddjango_orm.py89 def __init__(self, model_class, key_name, key_value, property_name): argument
98 self.model_class = model_class
112 entities = self.model_class.objects.filter(**query)
130 entity, unused_is_new = self.model_class.objects.get_or_create(**args)
132 entity = self.model_class(**args)
141 entities = self.model_class.objects.filter(**query).delete()
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dproperty_range.py63 self.model_class = util.for_name(self.model_class_path)
65 self.filters, self.model_class)
68 def _get_range_from_filters(cls, filters, model_class): argument
132 if issubclass(model_class, db.Model):
133 property_obj = model_class.properties()[range_property]
136 model_class._properties[ # pylint: disable=protected-access
200 if issubclass(self.model_class, db.Model):
201 query = db.Query(self.model_class, namespace=ns)
205 query = self.model_class.query(namespace=ns)
Dinput_readers.py634 model_class = util.for_name(entity_kind)
639 if issubclass(model_class, db.Model):
640 cls._validate_filters(filters, model_class)
642 cls._validate_filters_ndb(filters, model_class)
646 def _validate_filters(cls, filters, model_class): argument
664 properties = model_class.properties()
671 prop, model_class.kind())
682 def _validate_filters_ndb(cls, filters, model_class): argument
687 properties = model_class._properties
695 prop, model_class._get_kind())
/external/autotest/frontend/
Dviews_common.py6 model_class = getattr(models_module, model_name)
8 doc += '<pre>\n%s</pre>\n' % model_class.__doc__
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/db/manager/
Dsdbmanager.py58 self.model_class = Model
63 self.model_class: (
78 if self.model_class in item_type.mro():
79 item_type = self.model_class
119 if self.model_class in item_type.mro():
120 item_type = self.model_class
168 if self.model_class in item_type.mro():
524 …ect * from `%s` %s" % (self.domain.name, self._build_filter_part(query.model_class, query.filters,…
529 return self._object_lister(query.model_class, rs)
/external/chromium-trace/catapult/dashboard/dashboard/
Dedit_config_handler.py34 def __init__(self, request, response, model_class): argument
43 self._model_class = model_class
/external/opencv3/samples/python2/
Ddigits_adjust.py36 def cross_validate(model_class, params, samples, labels, kfold = 3, pool = None): argument
40 model = model_class(**params)
/external/autotest/frontend/afe/
Dmodel_logic.py322 def _is_relation_to(self, field, model_class): argument
323 return field.rel and field.rel.to is model_class