Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28414/tv
Modified Files:
__init__.py
Log Message:
respect coding style
Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/__init__.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** __init__.py 4 Dec 2004 01:21:23 -0000 1.13
--- __init__.py 8 Jan 2005 11:59:58 -0000 1.14
***************
*** 1,42 ****
# -*- coding: iso-8859-1 -*-
! # -----------------------------------------------------------------------
! # tv.py - This is the Freevo TV plugin.
! # -----------------------------------------------------------------------
# $Id$
#
- # Notes:
- # Todo:
- #
- # -----------------------------------------------------------------------
- # $Log$
- # Revision 1.13 2004/12/04 01:21:23 rshortt
- # Detect channels too.
- #
- # Revision 1.12 2004/11/21 10:12:47 dischi
- # improve system detect, use config.detect now
- #
- # Revision 1.11 2004/08/05 17:27:16 dischi
- # Major (unfinished) tv update:
- # o the epg is now taken from pyepg in lib
- # o all player should inherit from player.py
- # o VideoGroups are replaced by channels.py
- # o the recordserver plugins are in an extra dir
- #
- # Bugs:
- # o The listing area in the tv guide is blank right now, some code
- # needs to be moved to gui but it's not done yet.
- # o The only player working right now is xine with dvb
- # o channels.py needs much work to support something else than dvb
- # o recording looks broken, too
#
! # Revision 1.10 2004/07/10 12:33:41 dischi
! # header cleanup
#
! # Revision 1.9 2003/12/06 16:52:11 dischi
! # only import stuff we need
#
- # -----------------------------------------------------------------------
- # Freevo - A Home Theater PC framework
- # Copyright (C) 2002 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
--- 1,16 ----
# -*- coding: iso-8859-1 -*-
! #
-----------------------------------------------------------------------------
! # __init__.py - Freevo tv plugin
! #
-----------------------------------------------------------------------------
# $Id$
#
#
! #
-----------------------------------------------------------------------------
! # Freevo - A Home Theater PC framework
! # Copyright (C) 2002-2004 Krister Lagerstrom, Dirk Meyer, et al.
#
! # Maintainer: Dirk Meyer <[EMAIL PROTECTED]>
! # Rob Shortt <[EMAIL PROTECTED]>
#
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
***************
*** 55,63 ****
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
! # ----------------------------------------------------------------------- */
!
import plugin
class PluginInterface(plugin.MainMenuPlugin):
"""
--- 29,38 ----
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
! #
-----------------------------------------------------------------------------
+ # freevo imports
import plugin
+
class PluginInterface(plugin.MainMenuPlugin):
"""
***************
*** 68,77 ****
return the tv menu
"""
import config
! import tvmenu
! import menu
config.detect('tvcards', 'channels')
! return [ menu.MenuItem('', action=tvmenu.TVMenu().main_menu,
! type='main', parent=parent, skin_type='tv') ]
--- 43,56 ----
return the tv menu
"""
+ # import here to avoid importing all this when some helpers only
+ # want to import something from iside the tv directory
+
import config
! from tvmenu import TVMenu
! from mainmenu import MainMenuItem
+ # detect channels
config.detect('tvcards', 'channels')
! return [ MainMenuItem('', action=TVMenu().main_menu, type='main',
! parent=parent, skin_type='tv') ]
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog