Changes between Version 1 and Version 2 of CreatePluginScript


Ignore:
Timestamp:
Jul 3, 2008, 10:47:33 PM (6 years ago)
Author:
k0s
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CreatePluginScript

    v1 v2  
    33== Description ==
    44
    5 This python package will create a plugin skeleton given its name and a list of interfaces.  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 chosen interfaces and filling out the imports needed and signatures for the methods used.
     5This python package will create a trac plugin skeleton given its name and a list of interfaces it is to implement.  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 chosen interfaces and filling out the imports needed and signatures for the methods used.
    66
    7 The create-component script front-ends create_component.py, which can be used as as standalone piece without the rest of the software.
     7The {{{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.
    88
    99== Bugs/Feature Requests ==
     
    1919Download the zipped source from [download:createpluginscript here].
    2020
     21If you just want {{{create_component.py}}} go [http://trac-hacks.org/svn/createpluginscript/anyrelease/create_trac_plugin/create_component.py here].
     22
    2123== Source ==
    2224
    23 You can check out CreatePluginScript from [http://trac-hacks.org/svn/createpluginscript here] using Subversion, or [source:createpluginscript browse the source] with Trac.
     25You can check out CreatePluginScript from [http://trac-hacks.org/svn/createpluginscript/anyrelease here] using Subversion, or [source:createpluginscript/anyrelease browse the source] with Trac.
    2426
    2527== Example ==
     
    8082{{{
    8183NewPlugin/
    82 |-- NewPlugin.egg-info
     84|-- NewPlugin.egg-info # generated by PasteScript
    8385|-- newplugin
    8486|   |-- __init__.py
     
    9092
    9193{{{
    92 """
     94"""
    9395NewPlugin:
    9496a plugin for Trac
    9597http://trac.edgewall.org
    96 """
     98"""
    9799
    98100from trac.core import *
     
    107109    ### methods for ITemplateStreamFilter
    108110
    109     """Filter a Genshi event stream prior to rendering."""
     111    """Filter a Genshi event stream prior to rendering."""
    110112
    111113    def filter_stream(self, req, method, filename, stream, data):
    112         """Return a filtered Genshi event stream, or the original unfiltered
     114        """Return a filtered Genshi event stream, or the original unfiltered
    113115        stream if no match.
    114116
     
    119121
    120122        See the Genshi documentation for more information.
    121         """
     123        """
    122124
    123125    ### methods for IWikiSyntaxProvider
    124126
    125127    def get_link_resolvers(self):
    126         """Return an iterable over (namespace, formatter) tuples.
     128        """Return an iterable over (namespace, formatter) tuples.
    127129
    128130        Each formatter should be a function of the form
     
    130132        return some HTML fragment.
    131133        The `label` is already HTML escaped, whereas the `target` is not.
    132         """
     134        """
    133135
    134136    def get_wiki_syntax(self):
    135         """Return an iterable that provides additional wiki syntax.
     137        """Return an iterable that provides additional wiki syntax.
    136138
    137139        Additional wiki syntax correspond to a pair of (regexp, cb),
     
    139141        which will be called if there's a match.
    140142        That function is of the form cb(formatter, ns, match).
    141         """
     143        """
    142144}}}
    143145
     
    154156== Author/Contributors ==
    155157
     158''Originally developed at [http://topp.openplans.org The Open Planning Project]''
     159
    156160'''Author:''' [wiki:k0s] [[BR]]
    157161'''Contributors:'''