diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-06-05 12:21:52 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-06-05 12:21:52 +0000 |
| commit | 6425d849d87f792da2da18a09de46a3a6109c9d6 (patch) | |
| tree | 7973365873289c48b97c06821c38b22d0c4f839b /lib | |
| parent | 90293e90301f5ef5c224fd08b8cd229982e2f597 (diff) | |
| download | enigma2-6425d849d87f792da2da18a09de46a3a6109c9d6.tar.gz enigma2-6425d849d87f792da2da18a09de46a3a6109c9d6.zip | |
call reloadBouquets instead of loadBouquets
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Components/DreamInfoHandler.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py index 86015261..6cd96700 100644 --- a/lib/python/Components/DreamInfoHandler.py +++ b/lib/python/Components/DreamInfoHandler.py @@ -22,8 +22,7 @@ class InfoHandler(xml.sax.ContentHandler): self.elements = [] self.validFileTypes = ["skin", "config", "services", "favourites", "package"] self.prerequisitesMet = prerequisiteMet - - + def printError(self, error): print "Error in defaults xml files:", error raise InfoHandlerParseError, error @@ -110,6 +109,7 @@ class DreamInfoHandler: self.console = eConsoleAppContainer() self.console.appClosed.get().append(self.installNext) + self.reloadFavourites = False self.statusCallback = statusCallback self.setStatus(self.STATUS_INIT) @@ -200,6 +200,10 @@ class DreamInfoHandler: self.statusCallback(self.status, None) def installNext(self, *args, **kwargs): + if self.reloadFavourites: + self.reloadFavourites = False + db = eDVBDB.getInstance().reloadBouquets() + self.currentIndex += 1 attributes = self.installingAttributes #print "attributes:", attributes @@ -305,7 +309,8 @@ class DreamInfoHandler: def installFavourites(self, directory, name): print "installing favourites:", directory, " - ", name - + self.reloadFavourites = True + if self.blocking: os.system("cp %s %s" % ((directory + name), resolveFilename(SCOPE_CONFIG))) self.installNext() @@ -313,4 +318,3 @@ class DreamInfoHandler: if self.console.execute("cp %s %s" % ((directory + name), resolveFilename(SCOPE_CONFIG))): print "execute failed" self.installNext() - db = eDVBDB.getInstance().loadBouquet("bouquets.tv")
\ No newline at end of file |
