Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 9 years ago

#9910 closed enhancement (duplicate)

Add plugin framework to Ticket Clone plugin to make a stronger example

Reported by: chris.nelson.1022@… Owned by: Christian Boos
Priority: normal Milestone:
Component: general Version: 0.11.6
Severity: normal Keywords: ticketclone sample plugins
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The ticket clone plugin is a nice example of a simple plugin but it gets installed by copying. The files attached to this ticket make it a "proper" plugin that can be installed with the usual:

python setup.py bdist_egg
cp dist/*.egg /opt/trac/sandbox/plugins/

Attachments (2)

setup.py (519 bytes ) - added by Chris.Nelson@… 13 years ago.
Setup file
__init__.py (20 bytes ) - added by Chris.Nelson@… 13 years ago.
Init file

Download all attachments as: .zip

Change History (7)

by Chris.Nelson@…, 13 years ago

Attachment: setup.py added

Setup file

by Chris.Nelson@…, 13 years ago

Attachment: __init__.py added

Init file

comment:1 by Chris.Nelson@…, 13 years ago

Using the attachments as is requires moving the plugin's main .py file to a ticket_clone subdirectory. I end up with:

./ticket_clone/__init__.py
./ticket_clone/ticket_clone.py
./setup.py

comment:2 by Christian Boos, 13 years ago

Keywords: ticketclone sample plugins added
Milestone: 0.13
Owner: set to Christian Boos

Thanks Chris!

I think it would indeed be nice to have in sample-plugins at least one full fledged plugin, besides the single file ones. Using TicketClone for this is a good choice as it's small, simple and useful.

We could use this to show a few "best practices" for plugins, like using a versioning scheme matching the one of Trac (e.g. starting here with 0.13.0.1).

comment:3 by Christian Boos, 13 years ago

Milestone: 0.13
Resolution: duplicate
Status: newclosed

I forgot about #9354.

Not really a duplicate, more supersededby.

comment:4 by Ryan J Ollos, 9 years ago

Reporter: changed from Chris.Nelson@… to Chris.Nelson@…

comment:5 by Ryan J Ollos, 9 years ago

Reporter: changed from Chris.Nelson@… to chris.nelson.1022@…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.