Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv17126
Modified Files:
plugin.py
Log Message:
added support for a progress callback (0-100)
Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** plugin.py 30 Aug 2003 17:03:02 -0000 1.32
--- plugin.py 31 Aug 2003 14:18:31 -0000 1.33
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.33 2003/08/31 14:18:31 dischi
+ # added support for a progress callback (0-100)
+ #
# Revision 1.32 2003/08/30 17:03:02 dischi
# support for eventhandler in ItemPlugins
***************
*** 205,209 ****
! def init():
"""
load and init all the plugins
--- 208,212 ----
! def init(callback = None):
"""
load and init all the plugins
***************
*** 216,220 ****
--- 219,227 ----
__plugin_basedir__ = os.environ['FREEVO_PYTHON']
+ current = 0
for name, type, level, args, number in __all_plugins__:
+ current += 1
+ if callback:
+ callback(int((float(current) / len(__all_plugins__)) * 100))
__load_plugin__(name, type, level, args, number)
-------------------------------------------------------
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