Well i think you also got some answers on the forum. I wouldn't object to it that you change your own files but as you see you will run into problems on some platforms.
regards, Martijn Kaijser XBMC Foundation On 16 September 2015 at 21:59, Ken Vives <ken.vi...@gmail.com> wrote: > addon: kodi.script.ambibox > > Hello, > It seems that I may have been violating a rule for some time, but only > recently has it come to light that it is causing a bug. > > In order to provide user specific data on my addon's settings page, I have > been programmatically changing the settings.xml file using > ElementTree.parse(). Since this is a service addon, this occurs during > startup. > > Specifically, I have been changing the values= field for a labelenum type > to reflect valid choices that are specific and unique to each user's system. > > I just discovered here: > http://kodi.wiki/view/Add-on_Standards#Requirements_for_scripts_and_plugins > <http://s.bl-1.com/h/r3ocMpr?url=http://kodi.wiki/view/Add-on_Standards#Requirements_for_scripts_and_plugins> > > that this isn't allowed. Some, but not all, users just started > experiencing an error "IOError: file() constructor not accessible in > restricted mode" when the addon tries to parse the settings.xml file. > > So two questions: > 1) As stated on the above referenced page, can I get some kind of special > papal dispensation :) to allow me to continue to do this? > 2) If not, am I missing some other simple way of customizing the > settings.xml file programmatically at runtime? > > Thanks, > Ken > KenV99 on the forum > ken.vi...@gmail.com > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > Xbmc-addons mailing list > Xbmc-addons@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xbmc-addons > >
------------------------------------------------------------------------------
_______________________________________________ Xbmc-addons mailing list Xbmc-addons@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xbmc-addons