Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25572
Modified Files:
plugin.py
Log Message:
support for plugins to add defaults to config
Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** plugin.py 9 Sep 2003 18:36:11 -0000 1.38
--- plugin.py 10 Sep 2003 18:13:48 -0000 1.39
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.39 2003/09/10 18:13:48 dischi
+ # support for plugins to add defaults to config
+ #
# Revision 1.38 2003/09/09 18:36:11 dischi
# add a plugin helper to get more informations about the plugins
***************
*** 87,95 ****
"""
def __init__(self):
self._type = None
self._level = 10
self._number = 0
self.plugin_name = ''
!
class MainMenuPlugin(Plugin):
--- 90,104 ----
"""
def __init__(self):
+ import config
self._type = None
self._level = 10
self._number = 0
self.plugin_name = ''
! for var, val, desc in self.config():
! if not hasattr(config, var):
! setattr(config, var, val)
!
! def config(self):
! return []
class MainMenuPlugin(Plugin):
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog