summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2012-01-24 18:45:52 (GMT)
committerLuke Macken <lmacken@redhat.com>2012-01-24 18:45:52 (GMT)
commit087c678931bbc705072d7d23697ee8b4bb790b13 (patch)
tree8ce069dd7bcf121cbec4c061ef87036db2978d4b
parentf3e71413bd38e749ac532090b6413ec0aa4b036d (diff)
downloadfedoracommunity-087c678931bbc705072d7d23697ee8b4bb790b13.zip
fedoracommunity-087c678931bbc705072d7d23697ee8b4bb790b13.tar.gz
fedoracommunity-087c678931bbc705072d7d23697ee8b4bb790b13.tar.xz
Set widget defaults for summary and latest_build to fix a Traceback
-rw-r--r--fedoracommunity/widgets/package/overview.py3
-rw-r--r--fedoracommunity/widgets/package/package.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/fedoracommunity/widgets/package/overview.py b/fedoracommunity/widgets/package/overview.py
index 5fab60b..37d9e31 100644
--- a/fedoracommunity/widgets/package/overview.py
+++ b/fedoracommunity/widgets/package/overview.py
@@ -43,3 +43,6 @@ class Details(twc.Widget):
break;
self.package_info = result
+
+ def __repr__(self):
+ return "<Details %s>" % self.kwds
diff --git a/fedoracommunity/widgets/package/package.py b/fedoracommunity/widgets/package/package.py
index 1c4962d..b481a38 100644
--- a/fedoracommunity/widgets/package/package.py
+++ b/fedoracommunity/widgets/package/package.py
@@ -81,7 +81,8 @@ class PackageWidget(twc.Widget):
package_name = twc.Param()
args = twc.Param(default=None)
kwds = twc.Param(default=None)
- latest_build = twc.Variable()
+ latest_build = twc.Variable(default='Koji unavailable')
+ summary = twc.Variable(default='No summary provided')
navigation_widget = PackageNavWidget
def prepare(self):
@@ -115,4 +116,3 @@ class PackageWidget(twc.Widget):
self.latest_build = 'Not built in rawhide'
except Exception, e:
log.error('Unable to query koji: %s' % str(e))
- self.latest_build = 'Koji unavailable'