server/mirrormanager/model.py | 1 +
server/mirrormanager/templates/adminview.kid | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit dfe430e115a2180418d1f4f770edff01d167e203
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Mon Jan 17 22:07:03 2011 -0600
fix adminview Categories [Add] button
diff --git a/server/mirrormanager/templates/adminview.kid
b/server/mirrormanager/templates/adminview.kid
index 4f5a506..f75e054 100644
--- a/server/mirrormanager/templates/adminview.kid
+++ b/server/mirrormanager/templates/adminview.kid
@@ -17,7 +17,7 @@ Nothing to see here, move along.
<div id="adminview" py:if="admin_group in tg.identity.groups">
<div id="categories">
-<h3>Categories <a
href="${tg.url('/category/new')">[Add]</a></h3>
+<h3>Categories <a
href="${tg.url('/category/new')}">[Add]</a></h3>
<ul>
<li py:for="c in categories">
<span py:replace="c.name">Category Name</span>
commit 3911127fd81c1208af4fb5ff0b40753735d01b5d
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Mon Jan 17 22:06:42 2011 -0600
model: use @staticmethod for selectFieldOptions()
diff --git a/server/mirrormanager/model.py b/server/mirrormanager/model.py
index 1fe2b97..4783ebc 100644
--- a/server/mirrormanager/model.py
+++ b/server/mirrormanager/model.py
@@ -629,6 +629,7 @@ class Product(SQLObject):
c.destroySelf()
SQLObject.destroySelf(self)
+ @staticmethod
def selectFieldOptions():
return [(p.id, p.name) for p in Product.select(orderBy='name')]