Home
last modified time | relevance | path

Searched refs:id_or_name (Results 1 – 5 of 5) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/db/
Dkey.py49 def id_or_name(self): member in Key
59 return self.id_or_name()
/external/autotest/frontend/afe/
Dmodel_logic.py835 def smart_get(cls, id_or_name, valid_only=True): argument
845 if isinstance(id_or_name, (int, long)):
846 return manager.get(pk=id_or_name)
847 if isinstance(id_or_name, basestring) and hasattr(cls, 'name_field'):
848 return manager.get(**{cls.name_field : id_or_name})
850 'Invalid positional argument: %s (%s)' % (id_or_name,
851 type(id_or_name)))
858 for id_or_name in id_or_name_list:
860 result_objects.append(cls.smart_get(id_or_name))
862 invalid_inputs.append(id_or_name)
Dmodels.py1101 def smart_get(cls, id_or_name, *args, **kwargs): argument
1109 return cls.objects.get(pk=id_or_name)
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dhandlers.py1447 state.key().id_or_name())
1502 mr_id = state.key().id_or_name()
/external/chromium-trace/catapult/third_party/pipeline/pipeline/
Dpipeline.py3120 root_pipeline_id = root_pipeline_key.id_or_name()