Author: duncan
Date: Sat Jan 20 17:03:52 2007
New Revision: 9010
Modified:
branches/rel-1/freevo/src/menu.py
Log:
Added some __str__ functions, helps debugging
Modified: branches/rel-1/freevo/src/menu.py
==============================================================================
--- branches/rel-1/freevo/src/menu.py (original)
+++ branches/rel-1/freevo/src/menu.py Sat Jan 20 17:03:52 2007
@@ -130,6 +130,14 @@
self.back_one_menu = 1
+ def __str__(self):
+ """
+ return the class as string
+ """
+ s = '"%s" choices=%d' % (self.heading, len(self.choices))
+ return s
+
+
def items_per_page(self):
"""
return the number of items per page for this skin
@@ -154,6 +162,15 @@
self.force_page_rebuild = False
+ def __str__(self):
+ """
+ return the class as string
+ """
+ s = '%s' % self.label
+ s += ', top=%s left=%s' % (self.top, self.left)
+ return s
+
+
def get_event_context(self):
"""
return the event context
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog