E2OpenPlugins/e2openplugin-OpenWebif — pull request #196 by hudokkow (2014-10-27 23:40:27+00:00)
Title: [XML API] Remove unnecessary whitespace

Hi,

Background:
I'm a C/C++ coder, currently writing a Kodi/XBMC PVR backend for Enigma2 STBs. Because of that, I'm getting acquainted with OpenWebif's code base, XML API and Json API.

During my adventures, found these. Thought they were worth the pull request.
Runtime tested and works fine.

Now for the doubts:

@jbleyel mentioned in https://github.com/E2OpenPlugins/e2openplugin-OpenWebif/issues/190 that one only has to change *.tmpl, delete *.py and *.pyo files, restart Enigma and voila, changes take effect.

A few problems:
I changed signal.tmpl, deleted signal.py and signal.pyo, restarted Enigma and no sugar. *.py and *.pyo weren't generated. And web API threw an error.
I had to change signal.tmpl and signal.py to make changes stick. *.pyo was auto-generated even without Enigma restart.

On the same note, currenttime.tmpl has a different behaviour. Deleted *.py and *.pyo and instantly currenttime.tmpl changes were available. Even without *.py and *.pyo files.

Further, I'm working on another change that involves info.py. Yet again a different behaviour emerges. After changing info.py and deleting info.pyo, only way to compile *.pyo is to reboot the box, not restart Enigma. A new info.pyo is generated and my changes work.

Can I have some advice on this?

Thanks!