Changes between Initial Version and Version 1 of Ticket #12206
- Timestamp:
- Feb 26, 2015, 8:27:16 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12206 – Description
initial v1 1 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. [[BR]] 1 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. 2 3 LOCAL VARIABLES 4 {{{ 5 action=u'resolve_cpi' 6 field='' 7 self=<advancedworkflow.controller.TicketWorkflowOpTriage object at 0x04DB6F30> 8 ticket=<trac.ticket.model.Ticket object at 0x04BE5C10> 9 transition='' 10 transitions='' 11 x='' 12 y='' 13 }}} 2 14 3 15 4 5 6 LOCAL VARIABLES 7 action=u'resolve_cpi'[[BR]] 8 field=''[[BR]] 9 self=<advancedworkflow.controller.TicketWorkflowOpTriage object at 0x04DB6F30>[[BR]] 10 ticket=<trac.ticket.model.Ticket object at 0x04BE5C10>[[BR]] 11 transition=''[[BR]] 12 transitions=''[[BR]] 13 x=''[[BR]] 14 y=''[[BR]] 15 16 17 18 [ticket-workflow][[BR]] 19 resolve_cpi = new_cpi -> closed_cpi[[BR]] 20 resolve_cpi.name = resolve cpi[[BR]] 21 resolve_cpi.operations = set_resolution[[BR]] 22 resolve_cpi.permissions = TICKET_MODIFY[[BR]] 23 resolve_cpi.set_resolution = delivered,invalid[[BR]] 24 16 {{{#!ini 17 [ticket-workflow] 18 resolve_cpi = new_cpi -> closed_cpi 19 resolve_cpi.name = resolve cpi 20 resolve_cpi.operations = set_resolution 21 resolve_cpi.permissions = TICKET_MODIFY 22 resolve_cpi.set_resolution = delivered,invalid 23 }}} 25 24 26 25 27 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. 28 26 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. 29 27 30 28 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. 31 29 32 30 My workaround is below but I still blindly trying to split transition: 31 {{{#!python 33 32 if ((field <> '') and (transitions <> '')): 34 33 35 34 for transition in [x.strip() for x in transitions.split(',')]: 36 35 value, status = [y.strip() for y in transition.split('->')] … … 45 44 transition = self.config.get('ticket-workflow',action).strip() 46 45 value, status = [y.strip() for y in transition.split('->')] 46 }}}