I didn't look at them, but the idea looks good. I like the idea of having a config file the program con write and it will override local_conf.py. For the future local_conf.py would only be for developers and users get a nice gui to set stuff.
That would indeed be the ultimate goal.
I guess we need more fxd files. One with the possible variables and the type:
Yes, I guess there should be some sort of master FXD file for that.
and one for each language with a description
Maybe we could create some sort of gettext linkup? That way we can put the descriptions into the translation files.
How do we handle complex structures like TV_CHANNELS and VIDEO_ITEMS?
At the moment, we don't ;) There are a couple of options, depending on the complexity we need. Things get quite difficult when we use multi-level maps and lists.
What if changing the variable need some recalculations? Maybe add a function to call in the type fxd
I build a small handler into the RuntimeXML class. A class can link one of it's functions to a specified config variable. If the variable is changed, the function is called (with the name of the variable as a parameter). That function should take care of the recalculations.
I don't like the polling, maybe a mbus command to reload the config file. By that a gui would rewrite the file and then send the reload command.
That's an option, that would mean that only Freevo can change the file. Any changes made outside Freevo won't be noticed. But I guess that's not a big problem. Most of the editing would be done from the webinterface or from inside Freevo.
BTW, what about a fxd file with the default values? But that isn't easy because there are 'if' statements in freevo_config.py
No, that's quite hard at the moment. We could introduce an 'expression' parameter in the XML, but I don't think this will work. It's too inflexible.
It's a great idea, it would be cool if you could spend more time in it. Maybe a page in the webserver for configuration?
I'll try to work on it this weekend. I haven't really looked at the webserver, and I believe it doesn't work in CVS HEAD at the moment (?), but I'll try to come up with a proof-of-concept interface.
Eric
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
