Changeset 557


Ignore:
Timestamp:
08/15/11 12:54:08 (9 years ago)
Author:
bas
Message:

delete obsolete workflow code, see #226

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r552 r557  
    5050    enabled for new tickets and ticket updates.
    5151    eg: AdvancedTicketWorkflowPlugin, closes #226,#252
     52    Suggestion by: Holger Jürgs <hjuergs add jochenkuhl dot de>
    5253    Reported by: Frédéric DUARTE <f dot duarte add akka dot eu>
    5354                 kofal002 att umn dot edu
  • trunk/debian/changelog

    r552 r557  
     1email2trac (2.4.0-3) stable; urgency=low
     2
     3  * changed workflow implementation
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Mon, 15 Aug 2011 12:52:57 +0200
     6
    17email2trac (2.4.0-2) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r556 r557  
    702702        if workflow:
    703703
     704            ## process all workflow implementations
     705            #
    704706            tkt_module = TicketModule(self.env)
    705707            field_changes, problems = tkt_module.get_ticket_changes(req, tkt, workflow)
     
    715717
    716718                    tkt[field] = field_changes[field]['new']
    717 
    718             ## There can be several workflow implementations
    719             #
    720             #for controller in ticket_system.action_controllers:
    721            
    722                 ## Not Needed anymore, 9 Aug 2011 BvdV, we already checked the permissions
    723                 #
    724                 #if self.parameters.ticket_permission_system:
    725                 #
    726                 #
    727                 #   try:
    728                 #     if not self.check_permission(tkt, controller.actions[workflow]['permissions'][0]):
    729                 #            self.logger.info('Reporter: %s has no permission to trigger workflow' %self.author)
    730                 #            break
    731                 #    except AttributeError, detail:
    732                 #            self.logger.info('controller %s has no actions implementations' %(controller))
    733                 #
    734                
    735                 #fields = controller.get_ticket_changes(req, tkt, workflow)
    736                 #for key in fields.keys():
    737                 #    self.logger.debug('\t workflow %s %s : %s' %(controller, key, fields[key]))
    738                 #    tkt[key] = fields[key]
    739719
    740720            return True
Note: See TracChangeset for help on using the changeset viewer.