Changes between Version 9 and Version 10 of BackendOptions
- Timestamp:
- 28.12.2009 21:47:43 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackendOptions
v9 v10 1 = Backend Options = 1 {{{ 2 #!html 3 <h1 style="text-align: center; color: blue; font-size:3.0em">The Future of Coherence: Backend Options</h1> 4 }}} 5 6 [[TOC(heading= ,inline)]] 7 8 [[BR]] 9 [[BR]] 10 11 == Backend Options == 2 12 3 13 Further experimenting with an options system in which the backend itself provides instructions on generating its configuration GUI. Each backend shall provide ''class attributes descriptions'' and 4 ''configuration options'', accordingly named ''_config_description'' and _config_options.[[BR]] [[BR]]14 ''configuration options'', accordingly named ''_config_description'' and _config_options.[[BR]] 5 15 6 16 '''Note:''' You should probably '''wait''' until these specifications have been '''finalized and implemented.''' They may (and probably will) change a bit.[[BR]] 7 [[BR]]8 17 18 === Configuration Description === 9 19 10 11 == Configuration Description ==12 20 A tuple containing 3 strings: a formatted name, a backend description, and an optional icon used by the webUI/App UI to generate a superficial list of backends. 13 21 15 23 16 24 {{{ 25 #!python 17 26 _config_description = ('iRadio', 'Exposes internet radio streams from Shoutcast.', '/path/path/iradio.png') 18 27 _config_description = ('Shoutcast TV', "Exposes the list of video streams from Shoutcast TV.', None) 19 28 }}} 20 29 Early [http://www.picgarage.net/images/Backe_55170_675.png Implementation] of backend descriptions in which each backend appears as a button leading to its configuration panel. 21 [[BR]][[BR]][[BR]]22 30 23 24 25 == Configuration Options == 31 === Configuration Options === 26 32 27 33 A list of option dictionaries with the following values: 60 66 Example: 61 67 {{{ 68 #!python 62 69 _config_options = [{'option':'name', 'text':'Server Name:', 'type':'string','default':'my media','help': 'the name under this MediaServer shall show up with on other UPnP clients'}, 63 70 {'option':'version','text':'UPnP Version:','type':'int','default':2,'enum': (2,1),'help': 'the highest UPnP version this MediaServer shall support','level':'advance'}, 70 77 71 78 72 == Challenges==73 1.) Finding a proper equilibrium of flexibility and simplicity. [[BR]]79 === Challenges === 80 1.) Finding a proper [http://en.wikipedia.org/wiki/Equilibrium_%28film%29 equilibrium] of flexibility and simplicity. 74 81 75 82 2.) Implementing complex UI options in a simple yet effective way (Example: A UI components that allows the adding/deleting of directories)
