Lines Matching refs:pk

101         return [x.pk for x in obj.all()]
109 nd[di] = d[di].pk
126 return {"id": x.pk,
131 "layerdetailurl" : reverse('layerdetails', args=(prj.id,x.pk)),
432 if Build.objects.filter( pk=build_id ).count( ) == 0 :
434 build = Build.objects.get( pk = build_id );
540 tasks_list = Task.objects.filter( pk=task_id )
572 'build' : Build.objects.filter( pk = build_id )[ 0 ],
595 if Recipe.objects.filter(pk=recipe_id).count() == 0 :
598 recipe_object = Recipe.objects.get(pk=recipe_id)
599 layer_version = Layer_Version.objects.get(pk=recipe_object.layer_version_id)
600 layer = Layer.objects.get(pk=layer_version.layer_id)
610 'build' : Build.objects.get(pk=build_id),
622 if Recipe.objects.filter(pk=recipe_id).count() == 0 :
632 recipe_object = Recipe.objects.get(pk=recipe_id)
640 'build' : Build.objects.get(pk=build_id),
722 tf = Target_File.objects.get(pk=resolved_id)
728 p = Package.objects.get(pk=thisfile[0].package_id)
734 entry['link_to'] = Target_File.objects.get(pk=o.sym_target_id).path
774 build = Build.objects.get(pk=build_id)
778 'target': Target.objects.get(pk=target_id),
829 build = Build.objects.get(pk=build_id)
869 build_dir=re.sub("/tmp/log/.*","",Build.objects.get(pk=build_id).cooker_log_path)
871 build = Build.objects.get(pk=build_id)
932 build = Build.objects.get(pk=build_id)
974 package = Package.objects.get(pk=package_id)
980 dep_package = Package.objects.get(pk=idep.depends_on_id)
1053 if Build.objects.filter(pk=build_id).count() == 0 :
1067 package = Package.objects.get(pk=package_id)
1070 'build' : Build.objects.get(pk=build_id),
1097 if Build.objects.filter(pk=build_id).count() == 0 :
1100 package = Package.objects.get(pk=package_id)
1104 'build' : Build.objects.get(pk=build_id),
1115 if Build.objects.filter(pk=build_id).count() == 0 :
1129 package = Package.objects.get(pk=package_id)
1132 target = Target.objects.get(pk=target_id)
1134 'build' : Build.objects.get(pk=build_id),
1162 if Build.objects.filter(pk=build_id).count() == 0 :
1165 package = Package.objects.get(pk=package_id)
1168 target = Target.objects.get(pk=target_id)
1172 'build' : Build.objects.get(pk=build_id),
1184 if Build.objects.filter(pk=build_id).count() == 0 :
1197 package = Package.objects.get(pk=package_id)
1200 target = Target.objects.get(pk=target_id)
1206 'build' : Build.objects.get(pk=build_id),
1261 build = Build.objects.get( pk = build_id )
1412 release = Release.objects.get(pk = request.POST.get('projectversion', None ))
1414 prj.user_id = request.user.pk
1419 return redirect(reverse(project, args=(prj.pk,)) + "?notify=new-project")
1438 project = Project.objects.get(pk=pid)
1445 'project_pk': project.pk,
1450 return redirect(reverse(project_specific, args=(project.pk,)))
1484 release = Release.objects.get(pk = request.POST.get('projectversion', None ))
1487 prj.user_id = request.user.pk
1489 return redirect(reverse(project_specific, args=(prj.pk,)) + "?notify=new-project")
1505 project = Project.objects.get(pk=pid)
1511 return redirect("%s?%s" % (reverse(project_specific, args=(project.pk,)),params))
1513 return redirect(reverse(project_specific, args=(project.pk,)))
1519 project = Project.objects.get(pk=pid)
1523 return redirect(reverse(landing_specific,args=(project.pk,)))
1539 project = Project.objects.get(pk=pid)
1623 prj = Project.objects.get(pk = pid)
1627 if prj.release.pk == int(new_release_id):
1633 release = Release.objects.get(pk = new_release_id)
1684 pt = ProjectVariable.objects.get(pk = int(t)).delete()
1696 'configvars': [(x.name, x.value, x.pk) for x in configvars_query]
1730 recipe = get_object_or_404(CustomImageRecipe, pk=recipe_id)
1749 project = Project.objects.get(pk=pid)
1750 layer_version = Layer_Version.objects.get(pk=layerid)
1766 args=(pid, dep.pk)),
1825 be = BuildEnvironment.objects.get(pk = str(1))
1853 be = BuildEnvironment.objects.get(pk = str(1))
1881 … file_name = Target_Image_File.objects.get(target__build = build, pk = artifact_id).file_name
1884 target = TargetKernelFile.objects.get(pk=artifact_id)
1888 target = TargetSDKFile.objects.get(pk=artifact_id)
1892 file_name = Target.objects.get(build = build, pk = artifact_id).license_manifest_path
1895 file_name = Target.objects.get(build = build, pk = artifact_id).package_manifest_path
1898 file_name = Task.objects.get(build = build, pk = artifact_id).logfile
1901 file_name = LogMessage.objects.get(build = build, pk = artifact_id).pathname
1916 build = Build.objects.get(pk = build_id)