Update of /cvsroot/freevo/freevo/lib/pyepg
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2996/lib/pyepg

Modified Files:
        channel.py program.py 
Log Message:
add __str__ functions

Index: program.py
===================================================================
RCS file: /cvsroot/freevo/freevo/lib/pyepg/program.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** program.py  13 Dec 2004 02:26:36 -0000      1.8
--- program.py  22 Dec 2004 10:32:59 -0000      1.9
***************
*** 66,67 ****
--- 66,73 ----
          except AttributeError:
              return 1
+ 
+ 
+     def __str__(self):
+         return '%8d %s (%s): %s-%s' % (self.id, self.title, self.channel.id,
+                                        self.start, self.stop)
+     

Index: channel.py
===================================================================
RCS file: /cvsroot/freevo/freevo/lib/pyepg/channel.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** channel.py  11 Dec 2004 12:01:07 -0000      1.6
--- channel.py  22 Dec 2004 10:32:59 -0000      1.7
***************
*** 237,238 ****
--- 237,242 ----
                            self.programs)
          raise Exception('bad request: %s-%s' % (start, stop))
+ 
+ 
+     def __str__(self):
+         return '%s: %s' % (self.id, self.name)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to