Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23291
Modified Files:
commandmmitem.py
Log Message:
make compatible with dischi's changes
Index: commandmmitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/commandmmitem.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** commandmmitem.py 29 Jan 2004 19:42:52 -0000 1.1
--- commandmmitem.py 14 Feb 2004 17:35:39 -0000 1.2
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.2 2004/02/14 17:35:39 mikeruelle
+ # make compatible with dischi's changes
+ #
# Revision 1.1 2004/01/29 19:42:52 mikeruelle
# allow a use to add an fxd command file to the main menu. kinda like mediamenu. add
you www, email or news app
***************
*** 42,46 ****
import plugin
from item import Item
! from command import CommandItem
class CommandMainMenuItem(Item):
--- 45,50 ----
import plugin
from item import Item
! from command import CommandItem, fxdparser
! import util
class CommandMainMenuItem(Item):
***************
*** 51,57 ****
def __init__(self, parent, myxmlfile):
Item.__init__(self, parent, skin_type='commands')
! self.cmd_item = CommandItem(xmlfile=myxmlfile)
self.name = self.cmd_item.name
-
def actions(self):
--- 55,65 ----
def __init__(self, parent, myxmlfile):
Item.__init__(self, parent, skin_type='commands')
! command_items = []
! parser = util.fxdparser.FXD(myxmlfile)
! parser.setattr(None, 'items', command_items)
! parser.set_handler('command', fxdparser)
! parser.parse()
! self.cmd_item = command_items[0]
self.name = self.cmd_item.name
def actions(self):
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog