Just so people are aware:
Rob Shortt wrote:
Log Message:
First crack at moving autodetect code for TV cards into src/system. Added a
detect() to system/__init__.py that will call detect() on a system/ module.
The general idea here is that only Freevo processes that care about certain things (ie: devices) will request and have the information. If you want
your helper to know about TV_SETTINGS you would:
import config import system system.detect('tvcards')
...
Feel free to tweak this interface. The xine detection that exists already could be moved here as well as a bunch of things we don't autodetect yet.
+ # TODO: datect() should take **kwargs or a list
+ def detect(what):
+ eval(what).detect()
+
Right now this only works one call at a time:
system.detect('tvcards') system.detect('something else')
But I would like to have:
system.detect('tvcards', 'something else', ...)
-Rob
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel