[Pkg-debile-commits] [debile-master] 56/126: update model
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:14 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 0db287610ccc05939a23e5418d52e6cd941cb7ea
Author: Paul Tagliamonte <tag at pault.ag>
Date: Sat Jun 1 10:51:01 2013 -0400
update model
---
lucy/models/source.py | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/lucy/models/source.py b/lucy/models/source.py
index 1ef7c6d..3fadc07 100644
--- a/lucy/models/source.py
+++ b/lucy/models/source.py
@@ -14,6 +14,19 @@ class Source(LucyObject):
**kwargs)
- def get_pending_jobs(self):
+ def get_owner(self):
+ return User.load(self['owner'])
+
+ def get_jobs(self):
for x in Job.by_package(self['_id']):
yield x
+
+ def get_reports(self):
+ from lucy.models.report import Report
+ for x in Report.query({"package": self['_id']}):
+ yield x
+
+ def get_binaries(self):
+ from lucy.models.binary import Binary
+ for x in Binary.query({"source": self['_id']}):
+ yield x
--
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