Changes between Version 9 and Version 10 of CreatePluginScript


Ignore:
Timestamp:
Nov 9, 2015, 1:29:56 PM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • CreatePluginScript

    v9 v10  
    55== Description
    66
    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.
     7This 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.
    88
    99The {{{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.
     
    1515
    1616If 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
    1819If you want to submit patches, please read the
    1920[wiki:olemis#Guidelinestocollaborate patch submission guidelines].
     
    2324== Download
    2425
    25 Download the zipped source from [download:createpluginscript here].
     26Download the zipped source from [export:createpluginscript here].
    2627
    27 If you just want {{{create_component.py}}} go [http://trac-hacks.org/svn/createpluginscript/anyrelease/create_trac_plugin/create_component.py here].
     28If you just want {{{create_component.py}}} go [/svn/createpluginscript/anyrelease/create_trac_plugin/create_component.py here].
    2829
    2930== Source
    3031
    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.
     32You can check out CreatePluginScript from [/svn/createpluginscript/anyrelease here] using Subversion, or [source:createpluginscript/anyrelease browse the source] with Trac.
    3233
    3334== Example
     
    3536To list the interfaces available, simply run either of the console scripts without arguments:
    3637
    37 {{{
    38 #!sh
     38{{{#!sh
    3939$ create-trac-plugin
    4040
     
    8282To make a plugin named !NewPlugin that implements the ITemplateStreamFilter and IWikiSyntaxProvider interfaces, run:
    8383
    84 {{{
    85 #!sh
     84{{{#!sh
    8685create-trac-plugin NewPlugin ITemplateStreamFilter IWikiSyntaxProvider
    8786}}}
     
    10099{{{newplugin.py}}} will be populated with markers for the appropriate interfaces and the correct imports:
    101100
    102 {{{
    103 #!python
     101{{{#!python
    104102"""
    105103NewPlugin:
     
    156154To just generate the file (to stdout), use {{{create-trac-component}}} (or {{{python create_component.py}}}):
    157155
    158 {{{
    159 #!sh
     156{{{#!sh
    160157create-trac-component NewPlugin ITemplateStreamFilter IWikiSyntaxProvider
    161158}}}