Modify

Opened 4 years ago

Last modified 4 years ago

#7788 new defect

Plugin doesn't function with Python 2.6

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

Description (last modified by rjollos)

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 4 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 years ago by rekkanoryo

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 4 years ago by rjollos

  • Description modified (diff)
  • Summary changed from can't get this plugin to function to Plugin doesn't function with Python 2.6

comment:3 Changed 4 years ago by rjollos

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

Changed 4 years ago by anonymous

comment:4 Changed 4 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 4 years ago by anonymous

anyone have an idea why this doesn't work?

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.