Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: frontend/afe/model_logic.py

Issue 6181003: Add support for an --image flag to atest. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Fixing missing 'self.' in commented out parameters. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cli/job.py ('k') | frontend/afe/models.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frontend/afe/model_logic.py
diff --git a/frontend/afe/model_logic.py b/frontend/afe/model_logic.py
index 0ddcefec44da331995ddb3139150bafec2675c32..d7b553d2766d545dae068c989718ce1d5c766f3c 100644
--- a/frontend/afe/model_logic.py
+++ b/frontend/afe/model_logic.py
@@ -677,7 +677,9 @@ class ModelExtensions(object):
dest_obj = field_obj.rel.to.smart_get(data[field_name],
valid_only=False)
if to_human_readable:
- if dest_obj.name_field is not None:
+ # parameterized_jobs do not have a name_field
+ if (field_name != 'parameterized_job' and
+ dest_obj.name_field is not None):
data[field_name] = getattr(dest_obj,
dest_obj.name_field)
else:
« no previous file with comments | « cli/job.py ('k') | frontend/afe/models.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698