Modify

Opened 5 years ago

Last modified 3 years ago

#6365 new defect

I changed the type of the ticket (so that its status became incorrect) and got the error at line 200.

Reported by: arsenische@… Owned by: ermal
Priority: normal Component: MultipleWorkflowPlugin
Severity: normal Keywords:
Cc: georgy.steshin@… Trac Release: 0.12

Description

I replaced line 200 with this piece of code and it fixed it:

	if self.actions.has_key(action):
          this_action = self.actions[action]
        else:
          this_action = {
                'default': 0,
                'name': 'reset',
                'newstate': 'new',
                'oldstates': [],
                'operations': ['reset_workflow'],
                'permissions': []
          }

Attachments (1)

6365.patch (767 bytes) - added by sto 3 years ago.
The fix as a patch

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by sto

The fix as a patch

comment:1 Changed 3 years ago by sto

I've found the same problem and the proposed code worked; I've attached the fix as a patch just in case it makes it easier to apply it.

comment:2 Changed 3 years ago by anonymous

Doesn't work for me. Line 299 KeyError: u'_reset'

comment:3 Changed 3 years ago by anonymous

  • Cc georgy.steshin@… added
  • Trac Release changed from 0.11 to 0.12

The reset from wrong state still doesn't work for me

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.