Changes between Version 9 and Version 10 of CreatePluginScript
- Timestamp:
- Nov 9, 2015, 1:29:56 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CreatePluginScript
v9 v10 5 5 == Description 6 6 7 This python package will create a Trac plugin skeleton given a name and a list of interfaces it is to communicate with. The console script, {{{create-trac-plugin}}}, front-ends TracPluginTemplateScript and creates the basic layout of the plugin using [http://pythonpaste.org/script/ PasteScript]. Then the basic contents of the [http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture component] are generated by looking through the selected interfaces and filling out the imports needed and signatures for the methods used.7 This Python package will create a Trac plugin skeleton given a name and a list of interfaces it is to communicate with. The console script, {{{create-trac-plugin}}}, front-ends TracPluginTemplateScript and creates the basic layout of the plugin using [http://pythonpaste.org/script/ PasteScript]. Then the basic contents of the [t:TracDev/ComponentArchitecture component] are generated by looking through the selected interfaces and filling out the imports needed and signatures for the methods used. 8 8 9 9 The {{{create-trac-component}}} console script front-ends [source:createpluginscript/anyrelease/create_trac_plugin/create_component.py create_component.py], which can be used as as standalone piece without the rest of the package. … … 15 15 16 16 If you have any issues, create a 17 [http://trac-hacks.org/newticket?component=CreatePluginScript&owner=olemis new ticket]. 17 [/newticket?component=CreatePluginScript new ticket]. 18 18 19 If you want to submit patches, please read the 19 20 [wiki:olemis#Guidelinestocollaborate patch submission guidelines]. … … 23 24 == Download 24 25 25 Download the zipped source from [ download:createpluginscript here].26 Download the zipped source from [export:createpluginscript here]. 26 27 27 If you just want {{{create_component.py}}} go [ http://trac-hacks.org/svn/createpluginscript/anyrelease/create_trac_plugin/create_component.py here].28 If you just want {{{create_component.py}}} go [/svn/createpluginscript/anyrelease/create_trac_plugin/create_component.py here]. 28 29 29 30 == Source 30 31 31 You can check out CreatePluginScript from [ http://trac-hacks.org/svn/createpluginscript/anyrelease here] using Subversion, or [source:createpluginscript/anyrelease browse the source] with Trac.32 You can check out CreatePluginScript from [/svn/createpluginscript/anyrelease here] using Subversion, or [source:createpluginscript/anyrelease browse the source] with Trac. 32 33 33 34 == Example … … 35 36 To list the interfaces available, simply run either of the console scripts without arguments: 36 37 37 {{{ 38 #!sh 38 {{{#!sh 39 39 $ create-trac-plugin 40 40 … … 82 82 To make a plugin named !NewPlugin that implements the ITemplateStreamFilter and IWikiSyntaxProvider interfaces, run: 83 83 84 {{{ 85 #!sh 84 {{{#!sh 86 85 create-trac-plugin NewPlugin ITemplateStreamFilter IWikiSyntaxProvider 87 86 }}} … … 100 99 {{{newplugin.py}}} will be populated with markers for the appropriate interfaces and the correct imports: 101 100 102 {{{ 103 #!python 101 {{{#!python 104 102 """ 105 103 NewPlugin: … … 156 154 To just generate the file (to stdout), use {{{create-trac-component}}} (or {{{python create_component.py}}}): 157 155 158 {{{ 159 #!sh 156 {{{#!sh 160 157 create-trac-component NewPlugin ITemplateStreamFilter IWikiSyntaxProvider 161 158 }}}