Opened 13 years ago

Closed 7 years ago

#7788 closed defect (worksforme)

Plugin doesn't function with Python 2.6

Reported by: smcbutler Owned by: John Bailey
Priority: normal Component: CannedResponsesPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

hi, i'd love to get this plugin working but it doesn't seem to want to work. i've added the configuration as described by the documentation and get this in the trac.log file when i go to a ticket i own

2010-10-07 01:44:55,824 Trac[plugin] DEBUG: Canned Responses at initialization: {u'mailsupportreq': {u'comment': u'Would it be possible to run VersIC->MailSupport from the Library manager?', 'operations': [], u'name': u'Please send a MailSupport', 'default': 0, 'newstate': u'new', 'oldstates': [u'new', u'assigned'], u'type': u'MailSupport', 'id': u'mailsupportreq', u'permissions': [u'TRAC_ADMIN']}}

2010-10-07 01:44:55,824 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']

Where am I supposed to see the Canned response widget show?

One issue might be that I'm on Python 2.6 and am using the 2.5 egg. I was hoping this would work and i haven't seen messages suggesting that's an issue. Can you advise?

Attachments (1)

AvailableActions.png (33.2 KB) - added by anonymous 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by John Bailey

You almost certainly need to build a python 2.6 egg for the plugin. I saw similar issues with a number of trac plugns when moving from python 2.4 to 2.5, so I expect the same would hold true with a move from 2.5 to 2.6.

When the plugin works, you'll see a "canned response" option in the "Action" area at the bottom of open ticket pages.

comment:2 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)
Summary: can't get this plugin to functionPlugin doesn't function with Python 2.6

comment:3 Changed 13 years ago by Ryan J Ollos

It may be helpful to read TracPlugins, if you have not done so already.

Last edited 7 years ago by Ryan J Ollos (previous) (diff)

Changed 13 years ago by anonymous

Attachment: AvailableActions.png added

comment:4 Changed 13 years ago by anonymous

I've created the 2.6 egg and tried this again. I still can't get this to show up in the Actions area at the bottom of the ticket. The ticket I'm trying to change has "New" status, I'm logged in with TRAC_ADMIN status

2010-10-09 09:58:15,726 Trac[loader] DEBUG: Loading ticketstats from /usr/local/lib/python2.6/dist-packages/Tracticketstats-2.1.1-py2.6.egg
2010-10-09 09:58:15,727 Trac[loader] DEBUG: Loading CannedResponsesPlugin.plugin from /usr/local/lib/python2.6/dist-packages/CannedResponsesPlugin-0.11.1-py2.6.egg
2010-10-09 09:58:15,757 Trac[default_workflow] DEBUG: Workflow actions at initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name': u'
resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'reject': {'oper
ations': [], u'name': u'Failed testing, return to developer', 'default': 0, 'newstate': u'needs_work', 'oldstates': [u'testing'], 'permissions': []}, 
u'testing': {'operations': [], u'name': u'Submit to reporter for testing', 'default': 0, 'newstate': u'testing', 'oldstates': [u'new', u'accepted', u'
needs_work', u'assigned', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept', 'de
fault': 0, 'newstate': u'assigned', 'oldstates': [u'new'], u'permissions': [u'TICKET_MODIFY']}, u'leave': {u'operations': [u'leave_status'], 'name': u
'leave', u'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen', 
'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions': [u'TICKET_CREATE']}, u'pass': {u'operations': [u'set_resolution'], u'
name': u'Passes Testing', 'default': 0, 'newstate': u'closed', u'set_resolution': u'fixed', 'oldstates': [u'testing'], 'permissions': []}, u'reassign'
: {u'operations': [u'set_owner'], 'name': u'reassign', 'default': 0, 'newstate': u'new', 'oldstates': [u'new', u'assigned', u'reopened'], u'permission
s': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions'
: []}}

comment:5 Changed 13 years ago by anonymous

anyone have an idea why this doesn't work?

comment:6 Changed 7 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Probably an InstallationIssue. Please reopen if you wish to continue debugging.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain John Bailey.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.