Author: duncan
Date: Mon Dec 25 21:19:42 2006
New Revision: 8801

Modified:
   branches/rel-1/freevo/src/tv/channels.py

Log:
[ 1622019 ] FreevoChannels instance has no attribute 'getManChannelNum'
Patch from Frank Naude applied


Modified: branches/rel-1/freevo/src/tv/channels.py
==============================================================================
--- branches/rel-1/freevo/src/tv/channels.py    (original)
+++ branches/rel-1/freevo/src/tv/channels.py    Mon Dec 25 21:19:42 2006
@@ -214,8 +214,9 @@
     def getChannel(self):
         return config.TV_CHANNELS[self.chan_index][2]
 
-    def getManChannel(self,channel=0):
-        return config.TV_CHANNELS[(channel-1) % len(config.TV_CHANNELS)][2]
+
+    def getManChannelNum(self, channel=0):
+        return (channel-1) % len(config.TV_CHANNELS)
 
 
     def getNextChannelNum(self):
@@ -226,6 +227,10 @@
         return (self.chan_index-1) % len(config.TV_CHANNELS)
 
 
+    def getManChannel(self, channel=0):
+        return config.TV_CHANNELS[(channel-1) % len(config.TV_CHANNELS)][2]
+
+
     def getNextChannel(self):
         return config.TV_CHANNELS[(self.chan_index+1) % 
len(config.TV_CHANNELS)][2]
 

-------------------------------------------------------------------------
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

Reply via email to