[Pkg-debile-commits] [debile-master] 100/126: Re-added some helper methods about jobs

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:23 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit caef0237906be97864ed6195db33fd0fe21b8f91
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Fri Jul 26 23:46:46 2013 +0200

    Re-added some helper methods about jobs
---
 lucy/orm.py |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lucy/orm.py b/lucy/orm.py
index b753623..4403fa4 100644
--- a/lucy/orm.py
+++ b/lucy/orm.py
@@ -107,3 +107,17 @@ class Job(Base):
         serial['machine'] = self.machine.serialize()
         serial['package'] = self.package.serialize()
         return serial
+    # Helper methods
+    def is_pending(self):
+        if self.finished_at is None:
+            return True
+        return False
+
+    def is_failed(self):
+        #TODO
+        return True
+
+    def is_critical(self):
+        if self.type in ['build']:
+            return True
+        return False

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list