Author: justi9
Date: 2008-10-09 15:50:25 -0400 (Thu, 09 Oct 2008)
New Revision: 2611
Modified:
mgmt/trunk/cumin/python/cumin/job.py
Log:
Fix up some render args
Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py 2008-10-09 17:11:04 UTC (rev 2610)
+++ mgmt/trunk/cumin/python/cumin/job.py 2008-10-09 19:50:25 UTC (rev 2611)
@@ -962,7 +962,7 @@
class JobsAndGroupsTab(Widget):
def __init__(self, app, name):
super(JobsAndGroupsTab, self).__init__(app, name)
-
+
self.is_group = GroupSwitch(app, "group")
self.add_child(self.is_group)
@@ -975,7 +975,7 @@
def get_args(self, session):
return self.frame.get_args(session)
- def render_title(self, session, job):
+ def render_title(self, session, *args):
return "Jobs %s" %
fmt_count(Job.select().count())#self.job_tab.get_item_count(session, job))
def show_status_switch(self, session):
@@ -993,12 +993,12 @@
if is_group == "j":
return self.job_tab.phase.render(session)
- def render_jobs(self, session, args):
+ def render_jobs(self, session, *args):
is_group = self.is_group.get(session)
if is_group == "j":
return self.job_tab.render(session)
- def render_job_groups(self, session, args):
+ def render_job_groups(self, session, *args):
is_group = self.is_group.get(session)
if is_group == "g":
return self.job_group_tab.render(session)
Show replies by date