Lines Matching refs:models
3 from autotest_lib.frontend.afe import control_file, models, rpc_utils
25 model = models.AtomicGroup
30 return cls(request, models.AtomicGroup.objects.get(name=ag_name))
55 return models.AtomicGroup.add_object(name=input_dict['name'])
66 queryset = models.AtomicGroup.valid_objects.all()
71 model = models.Label
83 return cls(request, models.Label.objects.get(name=label_name))
110 return models.Label.add_object(name=input_dict['name'])
121 queryset = models.Label.valid_objects.all()
134 model = models.User
141 username = models.User.current_user().login
142 return cls(request, models.User.objects.get(login=username))
169 queryset = models.User.objects.all()
175 model = models.AclGroup
179 return cls(request, models.AclGroup.objects.get(name=acl_name))
204 return models.AclGroup.add_object(name=input_dict['name'])
212 queryset = models.AclGroup.objects.all()
228 model = models.Host
247 'has_label', models.Label, 'name')
257 return cls(request, models.Host.objects.get(hostname=hostname))
308 host = models.Host.add_object(hostname=input_dict['hostname'],
332 queryset = models.Host.valid_objects.all()
356 model = models.Test
366 return cls(request, models.Test.objects.get(name=test_name))
401 return models.Test.add_object(name=input_dict['name'],
416 queryset = models.Test.objects.all()
433 _job_fields = models.Job.get_field_dict()
445 models.DEFAULT_REBOOT_BEFORE),
448 models.DEFAULT_REBOOT_AFTER),
564 models.Host.create_one_time_host(hostname)
581 model = models.Job
592 in models.HostQueueEntry.Status.choices()
593 if status != models.HostQueueEntry.Status.QUEUED]
616 query_processor.add_keyval_selector('has_keyval', models.JobKeyval,
622 return cls(request, models.Job.objects.get(id=job_id))
631 models.Job.objects.populate_relationships(instances, models.JobKeyval,
674 owner = models.User.current_user().login
730 return models.Job.objects.get(id=job_id)
739 queryset = models.Job.objects.order_by('-id')
745 model = models.HostQueueEntry
756 instance = models.HostQueueEntry.objects.get(id=queue_entry_id)
794 query = models.HostQueueEntry.objects.filter(pk=self.instance.pk)
795 models.AclGroup.check_abort_permissions(query)
801 queryset = models.HostQueueEntry.objects.order_by('-id')
807 model = models.SpecialTask
817 instance = models.SpecialTask.objects.get(id=task_id)
845 models.AclGroup.check_for_acl_violation_hosts((host,))
846 return models.SpecialTask.schedule_special_task(host,
860 return models.SpecialTask.objects.order_by('-id')