# Ticket #6963 (closed enhancement: fixed)

Opened 3 years ago

## [Patch] Create proper plugin for DuplicateTicketSearchPlugin

Reported by: Assigned to: chrisheller rjollos normal DuplicateTicketSearchPlugin normal rjollos 0.11

### Description

I've created the files needed to turn this into a proper plugin.

The init.py file is the main file of interest. The setup.py should be edited to properly reflect your info though.

Also, you'll need to move the files to match the following layout

• duplicateticketsearchplugin
• 0.11
• setup.py
• duplicateticket
• init.py
• htdocs
• css
• tracDupeSearch.css
• js
• tracDupeSearch.js

You can restructure that a bit if you want, but then you'd need to update the *.py files to match whatever you change things to.

Once that is done, you should be able to run python setup.py bdist_egg and use the .egg itself instead of needing to modify the delivered trac files.

• duplicateticket

## Change History

### 04/10/10 10:17:00 changed by chrisheller

• attachment setup.py added.

### 04/10/10 10:17:25 changed by chrisheller

• attachment __init__.py added.

### 05/28/10 14:56:53 changed by anonymous

I have tested this on 0.12, and it works great. Thanks

### 08/27/10 19:54:49 changed by rjollos

• cc set to rjollos.
• summary changed from Create proper plugin for DuplicateTicketSearchPlugin to [Patch] Create proper plugin for DuplicateTicketSearchPlugin.

### (follow-up: ↓ 4 ) 09/09/10 05:48:05 changed by anonymous

copying build/lib.linux-i686-2.6/duplicateticket/__init__.py ->
build/bdist.linux-i686/egg/duplicateticket
byte-compiling build/bdist.linux-i686/egg/duplicateticket/init.py to init.pyc
Sorry: IndentationError: ('unexpected indent', ('build/bdist.linux-i686/egg/duplicateticket/init.py', 4, 1, ' from trac.core import *\n'))
byte-compiling build/bdist.linux-i686/egg/duplicateticket/__init__.py to __init__.pyc


i use python2.6 for "python setup.py bdist_egg" and could not be display correctly

### (in reply to: ↑ 3 ; follow-up: ↓ 5 ) 09/09/10 06:23:33 changed by rjollos

• status changed from new to assigned.
• owner changed from gregmac to rjollos.

I have tested this on 0.12, and it works great. Thanks

This is working well for me as well on Trac 0.11.7. I'm going to push this to the repository.

Initial testing makes me think that we might need to work on improving the search results a bit.

i use python2.6 for "python setup.py bdist_egg" and could not be display correctly

Please try the new version from the repository, and if you continue to have these issues, please open a new ticket with your installation details and cc me on the ticket.

### (in reply to: ↑ 4 ) 09/09/10 06:33:39 changed by rjollos

Initial testing makes me think that we might need to work on improving the search results a bit.

Looks like I had an error in the initial code, and its working great now.

### 09/09/10 06:34:19 changed by rjollos

• status changed from assigned to closed.
• resolution set to fixed.

(In [8716]) Bundled for installation as an egg. Now uses ITemplateStreamFilter so that template source code does not need to be modified. Patch by Chris Heller. Fixes #6963.

### Add/Change #6963 ([Patch] Create proper plugin for DuplicateTicketSearchPlugin)

Change Properties