Author: eallen
Date: 2009-09-30 10:45:59 -0400 (Wed, 30 Sep 2009)
New Revision: 3656
Modified:
mgmt/trunk/cumin/python/cumin/widgets.py
Log:
Pass session to get_click for state switches
Modified: mgmt/trunk/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/widgets.py 2009-09-30 14:40:08 UTC (rev 3655)
+++ mgmt/trunk/cumin/python/cumin/widgets.py 2009-09-30 14:45:59 UTC (rev 3656)
@@ -524,7 +524,7 @@
def get_bookmark(self, state):
return state in self.__bookmark and self.__bookmark[state]
- def get_click(self, state):
+ def get_click(self, session, state):
return ""
def get_attributes(self, state):
@@ -544,7 +544,7 @@
hover = self.get_hover(state)
class_ = self.get(session) == state and "selected"
bm = self.get_bookmark(state)
- click = self.get_click(state)
+ click = self.get_click(session, state)
attribs = self.get_attributes(state)
return fmt_link(branch.marshal(), title, class_, link_title=hover, bm=bm,
click=click, attribs=attribs)
Show replies by date