Changeset 526


Ignore:
Timestamp:
06/23/11 11:45:27 (9 years ago)
Author:
bas
Message:

Fix re-opening for closed tickets for trac 0.12 and higher. Only triggered when no workflow was defined in email2trac.conf, see #247

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r525 r526  
    1212    Fixed by: Bas van der Vlies
    1313
     14  * Closed tickets for trac version >= 0,12 where not re-opened if there was
     15    no workflow defined in email2trac.conf, see #247
     16 
     17    Reported by: Sergey V.Levin <slevin add adriver dot ru >
     18    Fixed by: Bas van der Vlies & Sergey V.Levin
    1419
    15202.1.0 (2011-6-6)
  • trunk/debian/changelog

    r524 r526  
     1email2trac (2.1.1-2) stable; urgency=low
     2
     3  * See Changelog
     4
     5 -- bas van der Vlies <basv@sara.nl>  Thu, 23 Jun 2011 11:43:30 +0200
     6
    17email2trac (2.1.1-1) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r525 r526  
    867867                workflow = self.parameters['workflow_%s' %tkt['status']]
    868868            except KeyError:
    869                 ## fallback for compability (Will be deprecated)
     869                ##
     870                # fallback for compability (Will be deprecated)
     871                # workflow can be none.
    870872                #
    871873                if tkt['status'] in ['closed']:
    872874                    workflow = self.parameters.workflow
    873                 else:   
    874                     workflow = None
    875875
    876876            controller = ConfigurableTicketWorkflow(self.env)
     
    897897                    self.logger.debug('\t %s : %s' %(key, fields[key]))
    898898                    tkt[key] = fields[key]
     899
     900            else:
     901
     902                if tkt['status'] in ['closed']:
     903                    tkt['status'] = 'reopened'
     904                    tkt['resolution'] = ''
    899905
    900906        ## Old pre 0.11 situation
Note: See TracChangeset for help on using the changeset viewer.