Changes between Version 2 and Version 3 of TracMacroConfigPlugin
- Timestamp:
- Nov 25, 2015, 9:47:58 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracMacroConfigPlugin
v2 v3 5 5 == Description 6 6 7 ''By itself, this modules does not provide any functionality.''' 8 9 This module provides a helper class which can be used by other plugins, especially macros, in retrieving optional arguments from trac.ini. 7 This module provides a helper class which can be used by other plugins, especially macros, in retrieving optional arguments from the `trac.ini` configuration file. By itself, this modules does not provide any functionality. 10 8 11 A macro using this module, can be called with a '''config=xxx''' option, to retrieve a set of options which in trac.ini all start with prefix '''xxx.'''12 13 Inheritance is supported, by writing an option '''xxx.inherit = yyy''' in trac.ini - all macro options not yet determined, are then searched with the other prefix, '''yyy.'''14 15 Multiple inheritance is supported, by writing '''config=prefixA|prefixB''' in the macro invocation, or writing an '''xxx.inherit = prefixC|prefixD''' option in trac.ini.16 17 The macro module which uses this functionality, specifies a list of expected options, as well as their defaults. These defaults will then be used when the respective option is specified nowhere.18 9 A macro using this module, can be called with a '''config=xxx''' option, to retrieve a set of options which in `trac.ini` all start with prefix '''xxx'''. 10 11 Inheritance is supported, by writing an option '''xxx.inherit = yyy''' in `trac.ini` - all macro options not yet determined, are then searched with the other prefix, '''yyy'''. 12 13 Multiple inheritance is supported, by writing '''config=prefixA|prefixB''' in the macro invocation, or writing an '''xxx.inherit = prefixC|prefixD''' option in `trac.ini`. 14 15 The macro module which uses this functionality, specifies a list of expected options, as well as their defaults. These defaults will then be used when the respective option is not specified anywhere. 16 19 17 == Bugs/Feature Requests 20 18 … … 23 21 If you have any issues, create a [/newticket?component=TracMacroConfigPlugin new ticket]. 24 22 23 [[TicketQuery(component=AccountManagerPlugin&group=type,format=progress)]] 24 25 25 == Download 26 26 27 Download the zipped source from [ download:tracmacroconfigplugin here].27 Download the zipped source from [export:tracmacroconfigplugin here]. 28 28 29 29 == Source 30 30 31 You can check out TracMacroConfigPlugin from [ http://trac-hacks.org/svn/tracmacroconfigplugin here] using Subversion, or [source:tracmacroconfigplugin browse the source] with Trac.31 You can check out TracMacroConfigPlugin from [/svn/tracmacroconfigplugin here] using Subversion, or [source:tracmacroconfigplugin browse the source] with Trac. 32 32 33 33 == Installation … … 39 39 Currently no plugin or macro uses the functionality. 40 40 41 There is an '''exam lemacro.py''' file included in the distribution, which when enabled through the admin plugings interface, provides a macro named '''!TracMacroConfigExample''', which displays a table detailling various interesting things about concrete option lookups. This allows you to play with macro arguments and in a corresponding '''[macroconfig-example]''' section in trac.ini,to play with inheritance setups.41 There is an '''examplemacro.py''' file included in the distribution, which when enabled through the admin plugings interface, provides a macro named '''!TracMacroConfigExample''', which displays a table detailing interesting things about concrete option lookups. This allows you to play with macro arguments and in a corresponding '''[macroconfig-example]''' section in `trac.ini` and to play with inheritance setups. 42 42 43 43 This is how exemplary calls to that macro would be written in a wiki page: … … 46 46 }}} 47 47 48 Use this together with a trac.inisection like this:48 Use this together with a `trac.ini` section like this: 49 49 {{{#!ini 50 50 [macroconfig-example] … … 64 64 65 65 '''Author:''' [wiki:bof] [[BR]] 66 '''Maintainer:''' [ wiki:bof] [[BR]]66 '''Maintainer:''' [[Maintainer]] [[BR]] 67 67 '''Contributors:''' [http://www.yalwa.de/ Yalwa Branchenbuch] (sponsor)