Ticket #6747: space_after_to.diff
| File space_after_to.diff, 2.1 KB (added by mark.m.mcmahon@…, 4 years ago) |
|---|
-
default_workflow.py
100 100 workflow defined in the TracIni configuration file, inside the 101 101 [ticket-workflow] section. 102 102 """ 103 103 104 104 def __init__(self, *args, **kwargs): 105 105 Component.__init__(self, *args, **kwargs) 106 106 self.actions = get_workflow_config(self.config) … … 139 139 140 140 Your environment has been upgraded, but configured to use the original 141 141 workflow. It is recommended that you look at changing this configuration to use 142 basic-workflow. 142 basic-workflow. 143 143 144 144 Read TracWorkflow for more information (don't forget to 'wiki upgrade' as well) 145 145 … … 187 187 all_status.add(action_info['newstate']) 188 188 all_status.discard('*') 189 189 return all_status 190 190 191 191 def render_ticket_action_control(self, req, ticket, action): 192 192 from trac.ticket import model 193 193 194 194 self.log.debug('render_ticket_action_control: action "%s"' % action) 195 195 196 196 this_action = self.actions[action] 197 status = this_action['newstate'] 197 status = this_action['newstate'] 198 198 operations = this_action['operations'] 199 199 200 200 control = [] # default to nothing … … 221 221 name=id, value=owner)])) 222 222 hints.append(_("The owner will change")) 223 223 elif len(owners) == 1: 224 control.append(tag('to %s ' % owners[0]))224 control.append(tag('to %s ' % owners[0])) 225 225 hints.append(_("The owner will change to %s") % owners[0]) 226 226 else: 227 227 control.append(tag([_("to "), tag.select( … … 315 315 316 316 # Public methods (for other ITicketActionControllers that want to use 317 317 # our config file and provide an operation for an action) 318 318 319 319 def get_actions_by_operation(self, operation): 320 320 """Return a list of all actions with a given operation 321 321 (for use in the controller's get_all_status())
