4 commits - bodhi/controllers.py bodhi.egg-info/PKG-INFO bodhi.egg-info/SOURCES.txt bodhi.egg-info/sqlobject.txt bodhi/release.py bodhi.spec
by Luke Macken
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.egg-info/SOURCES.txt | 2 --
bodhi.egg-info/sqlobject.txt | 2 --
bodhi.spec | 20 +++++++++++++++++++-
bodhi/controllers.py | 5 +++--
bodhi/release.py | 2 +-
6 files changed, 24 insertions(+), 9 deletions(-)
New commits:
commit 6f8b17b135c0d41ce2ed2f2e0775054093a6df53
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 30 11:10:32 2009 -0400
0.5.22, bringing everything up to speed with TG1.0.8, while maintaining Py2.4 compat
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index 4b8e520..30114d0 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.19
+Version: 0.5.22
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.egg-info/SOURCES.txt b/bodhi.egg-info/SOURCES.txt
index ddc3168..15f30f5 100644
--- a/bodhi.egg-info/SOURCES.txt
+++ b/bodhi.egg-info/SOURCES.txt
@@ -35,7 +35,6 @@ bodhi.egg-info/dependency_links.txt
bodhi.egg-info/entry_points.txt
bodhi.egg-info/not-zip-safe
bodhi.egg-info/requires.txt
-bodhi.egg-info/sqlobject.txt
bodhi.egg-info/top_level.txt
bodhi/config/__init__.py
bodhi/config/app.cfg
@@ -167,5 +166,4 @@ bodhi/tools/metrics.py
bodhi/tools/pickledb.py
bodhi/tools/rmrelease.py
bodhi/tools/tagcheck.py
-comps/.cvsignore
docs/bodhi.1
\ No newline at end of file
diff --git a/bodhi.egg-info/sqlobject.txt b/bodhi.egg-info/sqlobject.txt
deleted file mode 100644
index dc9ca11..0000000
--- a/bodhi.egg-info/sqlobject.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-db_module=bodhi.model
-history_dir=$base/bodhi/sqlobject-history
diff --git a/bodhi.spec b/bodhi.spec
index abe4961..b0f3085 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.19
+Version: 0.5.22
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
@@ -100,6 +100,7 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%{_bindir}/start-%{name}
%{_bindir}/%{name}-*
%{_sysconfdir}/httpd/conf.d/bodhi.conf
+%dir %{_sysconfdir}/bodhi/
%attr(-,apache,root) %{_datadir}/%{name}
%attr(-,apache,root) %config(noreplace) %{_sysconfdir}/bodhi/*
%attr(-,apache,root) %{_localstatedir}/log/bodhi
@@ -113,8 +114,25 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%changelog
+* Thu Apr 30 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.22-1
+- Remove pagination patch, as Fedora Infrastructure is now TG 1.0.8
+
+* Thu Apr 30 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.21-1
+- Update to TG 1.0.8 API (fixes a @paginate issue)
+
+* Mon Apr 06 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.20-1
+- Fix a bug when sending mash requests through the ProxyClient
+- More Python2.4 workarounds
+
+* Mon Apr 06 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.19-3
+- Update to work with Python2.4
+
+* Mon Apr 06 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.19-2
+- Revision bump to bring it up to speed with the fedora infra package
+
* Sat Mar 21 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.19-1
- 0.5.19
+- Add a patch to get pagination working in TG 1.0.4.4
* Tue Feb 10 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.18-1
- Bugfix release, and to stop using deprecated python-fedora APIs.
diff --git a/bodhi/release.py b/bodhi/release.py
index 1aa7157..9c6242e 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.19'
+VERSION = '0.5.22'
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'
commit 19deddc9266d80377a556c29fb1faa0ea78ae1bd
Merge: 20ed927... 34e2a52...
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 30 11:07:37 2009 -0400
Merge branch 'master' of git+ssh://git.fedorahosted.org/git/bodhi
commit 20ed927bf9128c825dd248831132e236fffe5781
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Apr 6 17:06:28 2009 -0400
Get the start/end date queries working on Python 2.4.
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index e0f9fb6..0bf2961 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -15,6 +15,7 @@
import rpm
import mail
import urllib2
+import time
import logging
import cherrypy
import xmlrpclib
@@ -232,10 +233,10 @@ class Root(controllers.RootController):
if username:
query.append(PackageUpdate.q.submitter == username)
if start_date:
- start_date = datetime.strptime(start_date, '%Y-%m-%d %H:%M:%S')
+ start_date = datetime(*time.strptime(start_date, '%Y-%m-%d %H:%M:%S')[:-2])
query.append(PackageUpdate.q.date_pushed >= start_date)
if end_date:
- end_date = datetime.strptime(end_date, '%Y-%m-%d %H:%M:%S')
+ end_date = datetime(*time.strptime(end_date, '%Y-%m-%d %H:%M:%S')[:-2])
query.append(PackageUpdate.q.date_pushed <= end_date)
updates = PackageUpdate.select(AND(*query),
commit 042edfa5084d8775c9026a090bf1d09b507231a2
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Apr 6 17:05:54 2009 -0400
Send the value of the Morsel to the ProxyClient, not the Morsel itself
diff --git a/bodhi/admin.py b/bodhi/admin.py
index a176313..6ea8634 100644
--- a/bodhi/admin.py
+++ b/bodhi/admin.py
@@ -189,7 +189,7 @@ class AdminController(Controller, SecureResource):
client = ProxyClient(config.get('masher'), debug=True)
cookie = SimpleCookie(cherrypy.request.headers.get('Cookie'))
session, data = client.send_request(method,
- auth_params={'session_id': cookie.get('tg-visit')},
+ auth_params={'session_id': cookie.get('tg-visit').value},
req_params=kwargs)
log.debug("Remote method returned %s" % repr(data))
if data.get('tg_flash'):
14 years, 11 months
3 commits - bodhi/admin.py
by Luke Macken
bodhi/admin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 34e2a521d904737b5e5899413e240c798a742d79
Merge: 77af16a... c90fc84...
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Apr 30 14:39:37 2009 -0400
Merge branch 'master' of git+ssh://git.fedoraproject.org/git/bodhi
commit 77af16a25849d34f2271306e5bd0c569a0f270f6
Merge: 0255c04... e23a1bf...
Author: Luke Macken <lmacken(a)redhat.com>
Date: Sat Mar 21 16:57:04 2009 -0400
Merge branch 'master' of git+ssh://git.fedoraproject.org/git/bodhi
commit 0255c04cb651394b954bf7d6c5e02a1e67cda0d1
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Mar 9 12:06:06 2009 -0400
Only pass the cookie value as the session_id in the auth_params.
This used to work in the ProxyClient, but apparently it was never
supposed to work like this :)
diff --git a/bodhi/admin.py b/bodhi/admin.py
index a176313..6ea8634 100644
--- a/bodhi/admin.py
+++ b/bodhi/admin.py
@@ -189,7 +189,7 @@ class AdminController(Controller, SecureResource):
client = ProxyClient(config.get('masher'), debug=True)
cookie = SimpleCookie(cherrypy.request.headers.get('Cookie'))
session, data = client.send_request(method,
- auth_params={'session_id': cookie.get('tg-visit')},
+ auth_params={'session_id': cookie.get('tg-visit').value},
req_params=kwargs)
log.debug("Remote method returned %s" % repr(data))
if data.get('tg_flash'):
14 years, 11 months
2 commits - bodhi.egg-info/PKG-INFO bodhi/release.py bodhi.spec bodhi/tools
by Luke Macken
bodhi.egg-info/PKG-INFO | 2 +-
bodhi.spec | 5 ++++-
bodhi/release.py | 2 +-
bodhi/tools/pickledb.py | 5 ++++-
4 files changed, 10 insertions(+), 4 deletions(-)
New commits:
commit c90fc84dd1bc76525334720292f1d575b9b06998
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Apr 6 11:12:53 2009 -0400
0.5.19
diff --git a/bodhi.egg-info/PKG-INFO b/bodhi.egg-info/PKG-INFO
index a59ce73..4b8e520 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.18
+Version: 0.5.19
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 a46e547..abe4961 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.18
+Version: 0.5.19
Release: 1%{?dist}
Summary: A modular framework that facilitates publishing software updates
Group: Applications/Internet
@@ -113,6 +113,9 @@ rm -rf bodhi/tests bodhi/tools/test-bodhi.py
%changelog
+* Sat Mar 21 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.19-1
+- 0.5.19
+
* Tue Feb 10 2009 Luke Macken <lmacken(a)redhat.com> - 0.5.18-1
- Bugfix release, and to stop using deprecated python-fedora APIs.
diff --git a/bodhi/release.py b/bodhi/release.py
index 7804add..1aa7157 100644
--- a/bodhi/release.py
+++ b/bodhi/release.py
@@ -1,4 +1,4 @@
-VERSION = '0.5.18'
+VERSION = '0.5.19'
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'
commit 87eadcec33f7b41c46d14dc110b9a936cd9c0d4a
Author: Luke Macken <lmacken(a)redhat.com>
Date: Mon Apr 6 11:11:18 2009 -0400
Make our pickledb tool a little bit more robust when it comes to handling builds
diff --git a/bodhi/tools/pickledb.py b/bodhi/tools/pickledb.py
index e685424..bdac628 100755
--- a/bodhi/tools/pickledb.py
+++ b/bodhi/tools/pickledb.py
@@ -145,7 +145,10 @@ def load_db():
package = Package.byName(pkg)
except SQLObjectNotFound:
package = Package(name=pkg)
- build = PackageBuild(nvr=nvr, package=package)
+ try:
+ build = PackageBuild.byNvr(nvr)
+ except SQLObjectNotFound:
+ build = PackageBuild(nvr=nvr, package=package)
update.addPackageBuild(build)
## Create all Bugzilla objects for this update
14 years, 12 months
bodhi/controllers.py
by Luke Macken
bodhi/controllers.py | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
New commits:
commit aac3365bdfe12cd154e2b150d3ce1392c4aab9c2
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Apr 3 10:44:26 2009 -0400
Add start_date/end_date and count_only arguments to our list API method (bodhi#141)
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 1ea2a22..e0f9fb6 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -190,9 +190,11 @@ class Root(controllers.RootController):
'mine': validators.StringBool(),
'get_auth': validators.StringBool(),
'username': validators.UnicodeString(),
+ 'count_only': validators.StringBool(),
})
def list(self, release=None, bugs=None, cves=None, status=None, type_=None,
- package=None, mine=False, get_auth=False, username=None, **kw):
+ package=None, mine=False, get_auth=False, username=None,
+ start_date=None, end_date=None, count_only=False, **kw):
""" Return a list of updates based on given parameters """
log.debug('list(%s)' % locals())
query = []
@@ -229,10 +231,19 @@ class Root(controllers.RootController):
PackageUpdate.q.submitter == identity.current.user_name)
if username:
query.append(PackageUpdate.q.submitter == username)
+ if start_date:
+ start_date = datetime.strptime(start_date, '%Y-%m-%d %H:%M:%S')
+ query.append(PackageUpdate.q.date_pushed >= start_date)
+ if end_date:
+ end_date = datetime.strptime(end_date, '%Y-%m-%d %H:%M:%S')
+ query.append(PackageUpdate.q.date_pushed <= end_date)
updates = PackageUpdate.select(AND(*query),
orderBy=orderBy).reversed()
+ if count_only:
+ return dict(num_items=updates.count(), updates=[])
+
# The package argument may be an update, build or package.
if package:
try:
14 years, 12 months