Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21376/src/plugins
Modified Files:
shutdown.py
Log Message:
respect coding standard, use MainMenuItem
Index: shutdown.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/shutdown.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** shutdown.py 6 Oct 2004 18:44:51 -0000 1.9
--- shutdown.py 8 Jan 2005 11:12:20 -0000 1.10
***************
*** 1,31 ****
# -*- coding: iso-8859-1 -*-
! # -----------------------------------------------------------------------
! # shutdown.py - shutdown plugin / handling
! # -----------------------------------------------------------------------
# $Id$
#
! # Notes:
! # Todo:
! #
! # -----------------------------------------------------------------------
! # $Log$
! # Revision 1.9 2004/10/06 18:44:51 dischi
! # move shutdown code from plugin to cleanup.py
! #
! # Revision 1.8 2004/08/23 12:39:30 dischi
! # adjust to new display code
! #
! # Revision 1.7 2004/07/10 12:33:40 dischi
! # header cleanup
! #
! # Revision 1.6 2004/06/09 19:42:08 dischi
! # fix crash
#
! # Revision 1.5 2004/06/06 14:16:08 dischi
! # small fix for confirm and enable shutdown sys
#
! # -----------------------------------------------------------------------
# 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 -*-
! #
-----------------------------------------------------------------------------
! # shutdown.py - shutdown plugin
! #
-----------------------------------------------------------------------------
# $Id$
#
! # This plugin creates the shutdown main menu item
#
! # First edition: Dirk Meyer <[EMAIL PROTECTED]>
! # Maintainer: Dirk Meyer <[EMAIL PROTECTED]>
#
! #
-----------------------------------------------------------------------------
# Freevo - A Home Theater PC framework
! # Copyright (C) 2002-2004 Krister Lagerstrom, Dirk Meyer, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
***************
*** 44,68 ****
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
! # ----------------------------------------------------------------------- */
!
!
! import os
! import time
! import sys
import config
from gui import ConfirmBox
! from item import Item
from plugin import MainMenuPlugin
from cleanup import shutdown
! class ShutdownItem(Item):
"""
Item for shutdown
"""
def __init__(self, parent=None):
! Item.__init__(self, parent, skin_type='shutdown')
self.menuw = None
--- 29,49 ----
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
! #
-----------------------------------------------------------------------------
+ # freevo imports
import config
from gui import ConfirmBox
! from mainmenu import MainMenuItem
from plugin import MainMenuPlugin
from cleanup import shutdown
! class ShutdownItem(MainMenuItem):
"""
Item for shutdown
"""
def __init__(self, parent=None):
! MainMenuItem.__init__(self, parent, skin_type='shutdown')
self.menuw = None
***************
*** 94,99 ****
ConfirmBox(text=what, handler=self.shutdown_freevo,
default_choice=1).show()
!
!
def confirm_system(self, arg=None, menuw=None):
"""
--- 75,80 ----
ConfirmBox(text=what, handler=self.shutdown_freevo,
default_choice=1).show()
!
!
def confirm_system(self, arg=None, menuw=None):
"""
***************
*** 121,125 ****
shutdown(menuw=menuw, argshutdown=False, argrestart=False)
!
def shutdown_system(self, arg=None, menuw=None):
"""
--- 102,106 ----
shutdown(menuw=menuw, argshutdown=False, argrestart=False)
!
def shutdown_system(self, arg=None, menuw=None):
"""
***************
*** 128,131 ****
--- 109,113 ----
shutdown(menuw=menuw, argshutdown=True, argrestart=False)
+
def shutdown_system_restart(self, arg=None, menuw=None):
"""
***************
*** 134,143 ****
shutdown(menuw=menuw, argshutdown=False, argrestart=True)
!
!
#
! # the plugins defined here
#
--- 116,125 ----
shutdown(menuw=menuw, argshutdown=False, argrestart=True)
!
!
#
! # the plugin is defined here
#
***************
*** 149,152 ****
def items(self, parent):
return [ ShutdownItem(parent) ]
-
-
--- 131,132 ----
-------------------------------------------------------
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