add missing base class initialization
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 10 Jul 2006 21:58:55 +0000 (21:58 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 10 Jul 2006 21:58:55 +0000 (21:58 +0000)
lib/python/Components/PerServiceDisplay.py
lib/python/python.cpp

index a36d4a6045131142f65ec7fd972f34e0d8213992..6de7e8887600941d3566bc8f558d550bf4f8b7d7 100644 (file)
@@ -54,6 +54,7 @@ class PerServiceDisplayProgress(PerServiceBase, VariableValue, GUIComponent):
        def __init__(self, navcore, eventmap):
                GUIComponent.__init__(self)
                VariableValue.__init__(self)
        def __init__(self, navcore, eventmap):
                GUIComponent.__init__(self)
                VariableValue.__init__(self)
+               PerServiceBase.__init__(self, navcore, eventmap)
                self.eventmap = eventmap
                self.navcore = navcore
                self.navcore.event.append(self.event)
                self.eventmap = eventmap
                self.navcore = navcore
                self.navcore.event.append(self.event)
index b5ae486486efd5af9a34a529d4b95c0be7ac5dd2..23e83e98f26af5d5931eeaf10f0320d9d64033fc 100644 (file)
@@ -62,6 +62,8 @@ ePython::ePython()
 {
 //     Py_VerboseFlag = 1;
        
 {
 //     Py_VerboseFlag = 1;
        
+       Py_OptimizeFlag = 1;
+       
        Py_Initialize();
        
        init_enigma();
        Py_Initialize();
        
        init_enigma();
@@ -75,9 +77,8 @@ ePython::~ePython()
 int ePython::execute(const std::string &pythonfile, const std::string &funcname)
 {
        PyObject *pName, *pModule, *pDict, *pFunc, *pArgs, *pValue;
 int ePython::execute(const std::string &pythonfile, const std::string &funcname)
 {
        PyObject *pName, *pModule, *pDict, *pFunc, *pArgs, *pValue;
-       
        pName = PyString_FromString(pythonfile.c_str());
        pName = PyString_FromString(pythonfile.c_str());
-       
+
        pModule = PyImport_Import(pName);
        Py_DECREF(pName);
        
        pModule = PyImport_Import(pName);
        Py_DECREF(pName);