|Version 3 (modified by richard, 4 years ago) (diff)|
Trac quick plugin template script
Another trac plugin template, inspired by TracPluginTemplateScript, which generate a pretty barebone plugin. This script generate a more fleshing plugin, providing:
- permission requestor
- navigation contributor
- templates provider
- request handler
- i18n support
- database access support
- database version upgrade support
- sample html templates
- sample documents
If you have any issues, create a new ticket.
Download the zipped source from here.
After the package is installed, the template should be listed among the options for paster:
$ paster create --list-templates Available templates: basic_package: A basic setuptools-enabled package paste_deploy: A web application deployed through paste.deploy trac_quick_plugin: Another paste template for a trac plugin, like TracPluginTemplateScript
To create a plugin called Foo (the class name of the Component will be FooPlugin by default), run:
$ paster create -t trac_quick_plugin Foo
paster will then ask you about details for the description, author name, and other details. You will then get a ready to deploy new plugin Foo that you may now deploy for test, edit and implement.