Author: dmeyer
Date: Sun Feb  4 20:19:58 2007
New Revision: 2457

Modified:
   trunk/popcorn/src/backends/manager.py

Log:
only import activated backends

Modified: trunk/popcorn/src/backends/manager.py
==============================================================================
--- trunk/popcorn/src/backends/manager.py       (original)
+++ trunk/popcorn/src/backends/manager.py       Sun Feb  4 20:19:58 2007
@@ -37,6 +37,7 @@
 
 # kaa.popcorn imports
 from kaa.popcorn.ptypes import *
+from kaa.popcorn.config import config
 
 # internal list of players
 _players = {}
@@ -50,9 +51,8 @@
     if _backends_imported:
         return
 
-    for backend in os.listdir(os.path.dirname(__file__)):
-        dirname = os.path.join(os.path.dirname(__file__), backend)
-        if os.path.isdir(dirname):
+    for backend in config:
+        if getattr(getattr(config, backend), 'activate', False):
             try:
                 # import the backend and register it.
                 exec('from %s import import_backend' % backend)

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to