Opened 15 years ago
Closed 14 years ago
#6963 closed enhancement (fixed)
[Patch] Create proper plugin for DuplicateTicketSearchPlugin
Reported by: | Chris Heller | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | DuplicateTicketSearchPlugin |
Severity: | normal | Keywords: | |
Cc: | Ryan J Ollos | Trac Release: | 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
- css
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
Attachments (2)
Change History (8)
Changed 15 years ago by
Changed 15 years ago by
Attachment: | __init__.py added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|---|
Summary: | Create proper plugin for DuplicateTicketSearchPlugin → [Patch] Create proper plugin for DuplicateTicketSearchPlugin |
comment:3 follow-up: 4 Changed 14 years ago by
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
comment:4 follow-up: 5 Changed 14 years ago by
Owner: | changed from gregmac to Ryan J Ollos |
---|---|
Status: | new → assigned |
Replying to anonymous:
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.
Replying to anonymous:
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.
comment:5 Changed 14 years ago by
Replying to 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.
comment:6 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I have tested this on 0.12, and it works great. Thanks