Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11827/src

Modified Files:
        plugin.py 
Log Message:
make cache helper work again

Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** plugin.py   5 Aug 2004 17:36:46 -0000       1.72
--- plugin.py   29 Aug 2004 18:38:15 -0000      1.73
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.73  2004/08/29 18:38:15  dischi
+ # make cache helper work again
+ #
  # Revision 1.72  2004/08/05 17:36:46  dischi
  # support for special plugin loading
***************
*** 359,362 ****
--- 362,392 ----
  
  
+ def init_special_plugin(id):
+     """
+     load only the plugin 'id'
+     """
+     global __all_plugins__
+     global __initialized__
+     global __plugin_basedir__
+     
+     __plugin_basedir__ = os.environ['FREEVO_PYTHON']
+ 
+     try:
+         id = int(id)
+     except ValueError:
+         pass
+     for i in range(len(__all_plugins__)):
+         name, type, level, args, number = __all_plugins__[i]
+         if number == id or name == id:
+             __load_plugin__(name, type, level, args, number)
+             del __all_plugins__[i]
+             break
+         
+     # sort plugins in extra function (exec doesn't like to be
+     # in the same function is 'lambda' 
+     __sort_plugins__()
+     
+ 
+ 
  def shutdown(plugin_name=None):
      """



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to