| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = Trac quick plugin template script = |
| 4 | |
| 5 | == Description == |
| 6 | |
| 7 | Another trac plugin template, inspired by TracPluginTemplateScript, which generate a pretty barebone plugin. |
| 8 | This plugin generate a more fleshing plugin, providing: |
| 9 | * permission requestor |
| 10 | * VIEW |
| 11 | * EDIT |
| 12 | * ADMIN |
| 13 | * navigation contributor |
| 14 | * templates provider |
| 15 | * request handler |
| 16 | * adminpanel |
| 17 | * i18n support |
| 18 | * database access support |
| 19 | * database version upgrade support |
| 20 | * sample html templates |
| 21 | * sample documents |
| 22 | * changelog.txt |
| 23 | * readme.txt |
| 24 | * version.txt |
| 25 | |
| 26 | |
| 27 | == Bugs/Feature Requests == |
| 28 | |
| 29 | Existing bugs and feature requests for TracQuickPluginTemplateScript are |
| 30 | [report:9?COMPONENT=TracQuickPluginTemplateScript here]. |
| 31 | |
| 32 | If you have any issues, create a |
| 33 | [http://trac-hacks.org/newticket?component=TracQuickPluginTemplateScript&owner=richard new ticket]. |
| 34 | |
| 35 | == Download == |
| 36 | |
| 37 | Download the zipped source from [download:tracquickplugintemplatescript here]. |
| 38 | |
| 39 | == Source == |
| 40 | |
| 41 | You can check out TracQuickPluginTemplateScript from [http://trac-hacks.org/svn/tracquickplugintemplatescript here] using Subversion, or [source:tracquickplugintemplatescript browse the source] with Trac. |
| 42 | |
| 43 | == Example == |
| 44 | |
| 45 | After the package is installed, the template should be listed among the options for paster: |
| 46 | |
| 47 | {{{ |
| 48 | $ paster create --list-templates |
| 49 | Available templates: |
| 50 | basic_package: A basic setuptools-enabled package |
| 51 | paste_deploy: A web application deployed through paste.deploy |
| 52 | trac_quick_plugin: Another paste template for a trac plugin, like TracPluginTemplateScript |
| 53 | }}} |
| 54 | |
| 55 | To create a plugin called {{{Foo}}} (the class name of the Component will be {{{FooPlugin}}} by default), run: |
| 56 | |
| 57 | {{{ |
| 58 | $ paster create -t trac_quick_plugin Foo |
| 59 | }}} |
| 60 | |
| 61 | [http://pythonpaste.org 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. |
| 62 | |
| 63 | == Recent Changes == |
| 64 | |
| 65 | [[ChangeLog(tracquickplugintemplatescript, 3)]] |
| 66 | |
| 67 | == Author/Contributors == |
| 68 | |
| 69 | '''Author:''' [wiki:richard] [[BR]] |
| 70 | '''Maintainer:''' [wiki:richard] [[BR]] |
| 71 | '''Contributors:''' |