Montag, 31. Oktober 2011

E2 Patch to avoid SkinErrors

The attached Patch implements a fallback for errors during reading and applying skins.

If the first skin troughs an exception, the next one will be tried.

So we get always a working skin, because the plugin developers will provide a working skin if the Skinner are behind and have to update their skins.

So we won't see this error reports anymore:
{aaa/skin.xml}: component with name 'bbb' was not found in skin of screen 'ccc'!
{aaa/skin.xml}: unsupported attribute bbb=ccc

And only a few lines of codes in mytest.py and skin.py will fix it.

Tested with the actual DMM experimental with a DM8000

Within the attached Zip, you will find:
Two diff files for mytest.py and skin.py
A folder with the original sources
A folder with the patched sources

Forum Link for more discussions:
http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=163331

ChangeLog:
0.1
Stilles Fallback ohne Rückmeldung

0.2
Für jeden SkinError wird ein einmaliges PopUp mit entsprechender Meldung ausgegeben.
Nach einem Neustart wird die Meldung wieder einmalig angezeigt.
Wenn ein Plugin beim Booten gestartet wird, wird dort auch gleich das Popup angezeigt, auch wenn das Plugin zunächst gar nicht sichtbar ist.

0.3
MessageBox TimeOut auf 60 Sekunden gesetzt
Grund:
Wenn man das ElektroPowerSave-Plugin verwendet um die Dreambox jeden Tag zu starten, dann bleibt nach dem Booten auf dem Frontdisplay der SkinError stehn anstelle der Uhrzeit.

0.4
Patch ist jetzt kompatibel mit dem Serienfilm Plugin

0.4.1
BugFix: Syntaxfehler

0.5
Patch is jetzt kompatibel zu Enigma2 20111110 rel32

Keine Kommentare:

Kommentar veröffentlichen