bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 5 ++++-
bodhi/controllers.py | 19 ++++++++++++++++---
bodhi/release.py | 2 +-
4 files changed, 22 insertions(+), 6 deletions(-)
New commits:
commit 73dfb078cab3d9c3dfc8316e6ae1eaec03825f1b
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Oct 9 14:41:36 2008 -0400
If no arguments are given to list, then return the latest updates
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 2e2ccbd..482e76a 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -187,6 +187,17 @@ class Root(controllers.RootController):
query = []
updates = []
+ # If no arguments are specified, return the most recent updates
+ if not release and not bugs and not cves and not status and not type_ \
+ and not package and not mine and not username:
+ log.debug("No arguments, returning latest")
+ updates = PackageUpdate.select(
+ orderBy=PackageUpdate.q.date_submitted).reversed()
+ num_items = updates.count()
+ return dict(updates=updates, num_items=num_items,
+ title="%d %s found" % (num_items, num_items == 1 and
+ 'update' or 'updates'))
+
try:
if release:
# TODO: if a specific release is requested along with get_auth,
commit 0ce3d6bfac1d10bd33fd1473406bba5a6548c11b
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Oct 9 14:41:24 2008 -0400
Add a 'username' argument to our list method
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 18d5ffa..2e2ccbd 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -180,10 +180,10 @@ class Root(controllers.RootController):
@expose(template="bodhi.templates.list", allow_json=True)
@paginate('updates', limit=20, allow_limit_override=True)
def list(self, release=None, bugs=None, cves=None, status=None, type_=None,
- package=None, mine=False, stringify=False, get_auth=False):
+ package=None, mine=False, stringify=False, get_auth=False,
+ username=None):
""" Return a list of updates based on given parameters
"""
- log.debug("list(%s, %s, %s, %s, %s, %s, %s, %s, %s)" % (release, bugs,
- cves, status, type_, package, mine, stringify, get_auth))
+ log.debug('list(%s)' % locals())
query = []
updates = []
@@ -203,6 +203,8 @@ class Root(controllers.RootController):
if mine:
query.append(
PackageUpdate.q.submitter == identity.current.user_name)
+ if username:
+ query.append(PackageUpdate.q.submitter == username)
updates = PackageUpdate.select(AND(*query))
commit 64b8f1fd157f01b44348076497dc9d677a0f6bc5
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Oct 7 19:04:16 2008 -0400
0.5.6
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index 3614295..a20bf1f 100644
--- a/bodhi.egg-info/PKG-INFO
+++ b/bodhi.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: bodhi
-Version: 0.5.5
+Version: 0.5.6
Summary: Bodhi is a modular web-system that facilitates the process of publishing updates
for a Fedora-based software distribution
Home-page:
https://fedorahosted.org/bodhi
Author: Luke Macken
diff --git a/bodhi.spec b/bodhi.spec
index 857c340..67f5d15 100644
--- a/bodhi.spec
+++ b/bodhi.spec
@@ -2,7 +2,7 @@
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print
sys.version[:3]")}
Name: bodhi
-Version: 0.5.5
+Version: 0.5.6
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
@@ -112,6 +112,9 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%changelog
+* Tue Oct 07 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.6-1
+- Latest upstream release.
+
* Mon Oct 06 2008 Luke Macken <lmacken(a)redhat.com> - 0.5.5-1
- Latest upstream release.
diff --git a/bodhi/release.py b/bodhi/release.py
index c7aa1f0..2c82042 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.5'
+VERSION = '0.5.6'
NAME = 'bodhi'
DESCRIPTION = 'Bodhi is a modular web-system that facilitates the process of
publishing updates for a Fedora-based software distribution'
AUTHOR = 'Luke Macken'