Modify ↓
Opened 11 years ago
Closed 8 years ago
#12206 closed defect (worksforme)
ValueError: need more than 1 value to unpack
| Reported by: | Owned by: | Ryan J Ollos | |
|---|---|---|---|
| Priority: | normal | Component: | AdvancedTicketWorkflowPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 1.0 |
Description (last modified by )
I'm using triage and non-triage flow elements much like the documentation example. The triage work fine to split my new ticket into one of two workflows. The non-triage state to resolve the ticket errors at _new_status line 371.
LOCAL VARIABLES
action=u'resolve_cpi' field='' self=<advancedworkflow.controller.TicketWorkflowOpTriage object at 0x04DB6F30> ticket=<trac.ticket.model.Ticket object at 0x04BE5C10> transition='' transitions='' x='' y=''
[ticket-workflow] resolve_cpi = new_cpi -> closed_cpi resolve_cpi.name = resolve cpi resolve_cpi.operations = set_resolution resolve_cpi.permissions = TICKET_MODIFY resolve_cpi.set_resolution = delivered,invalid
The code is checking for the .triage_field for the action (resolve_cpi in this case) and not getting one. There is no check for bad data from the self.config.get calls.
I'm using trac 1.0.2, python 2.7.6, and tried advancedticketworkflowplugin 1.2.0dev and the build under 0.12 source but is said 0.11dev.
My workaround is below but I still blindly trying to split transition:
if ((field <> '') and (transitions <> '')): for transition in [x.strip() for x in transitions.split(',')]: value, status = [y.strip() for y in transition.split('->')] if value == ticket[field].strip(): break else: self.env.log.error("Bad configuration for 'triage' operation in " "action '%s'", action) status = 'new' else: transition = self.config.get('ticket-workflow',action).strip() value, status = [y.strip() for y in transition.split('->')]
Attachments (0)
Change History (3)
comment:1 Changed 11 years ago by
| Description: | modified (diff) |
|---|
comment:2 Changed 8 years ago by
| Owner: | changed from Eli Carter to Ryan J Ollos |
|---|---|
| Status: | new → accepted |
comment:3 Changed 8 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.



I did some testing for #13191 and it seemed to work well for the 1.2 branch. Since you are on Trac 1.0 you'll want to use the 0.12 branch.
If you provide your entire
[ticket-workflow]section I can debug. Please try the latest 0.12 branch of the plugin first.This ticket is rather old though, so I'm not optimistic about a reply. Feel free to reopen if you wish to continue debugging.