diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-01-23 17:36:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 22:11:35 +0000 |
commit | 4f7182775cfa39c589e2e4693b1769127d7dd4d4 (patch) | |
tree | f62dfeba0e4a021fcbcb64c05e873b9da3458921 /bitbake/lib/toaster/bldcontrol | |
parent | fefef50e5474da740f926ef635676c4d5f24b9b7 (diff) | |
download | poky-4f7182775cfa39c589e2e4693b1769127d7dd4d4.tar.gz |
bitbake: toastergui: update project build listing
We update the build listings in the project mode to enable
proper display and selection of build requests that do not have
an actual build object because the bitbake process did not start.
We add a page to display error details for build requests that
did not start a build.
Fixing errors and misspelling in build sections.
Sorting by "timespent" is disabled for build-listing pages.
[YOCTO #7165]
[YOCTO #7156]
[YOCTO #7196]
[YOCTO #7188]
(Bitbake rev: ee13bf45cecd6a0132d724b3206a6f4515669496)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index 2386d2345a..dc4afca2f7 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
@@ -113,6 +113,15 @@ class BuildRequest(models.Model): | |||
113 | created = models.DateTimeField(auto_now_add = True) | 113 | created = models.DateTimeField(auto_now_add = True) |
114 | updated = models.DateTimeField(auto_now = True) | 114 | updated = models.DateTimeField(auto_now = True) |
115 | 115 | ||
116 | def get_duration(self): | ||
117 | return (self.updated - self.created).total_seconds() | ||
118 | |||
119 | def get_sorted_target_list(self): | ||
120 | tgts = self.brtarget_set.order_by( 'target' ); | ||
121 | return( tgts ); | ||
122 | |||
123 | def get_machine(self): | ||
124 | return self.brvariable_set.get(name="MACHINE").value | ||
116 | 125 | ||
117 | # These tables specify the settings for running an actual build. | 126 | # These tables specify the settings for running an actual build. |
118 | # They MUST be kept in sync with the tables in orm.models.Project* | 127 | # They MUST be kept in sync with the tables in orm.models.Project* |