Changeset 3820
- Timestamp:
- 06/10/08 21:57:26 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
advancedticketworkflowplugin/0.11/advancedworkflow/controller.py
r3730 r3820 4 4 5 5 import os 6 import time 6 7 from subprocess import call 7 8 from genshi.builder import tag … … 356 357 <someaction>.operations = xref 357 358 <someaction>.xref = "Ticket %s is related to this ticket" 359 <someaction>.xref_local = "Ticket %s was marked as related to this ticket" 358 360 359 361 Don't forget to add the `TicketWorkflowOpXRef` to the workflow … … 388 390 ticketnum = req.args.get(id).strip('#') 389 391 actions = ConfigurableTicketWorkflow(self.env).actions 392 author = req.authname 393 394 # Add a comment to the "remote" ticket to indicate this ticket is 395 # related to it. 390 396 format_string = actions[action].get('xref', 391 397 'Ticket %s is related to this ticket') 392 author = req.authname393 398 comment = format_string % ('#%s' % ticket.id) 399 # FIXME: This assumes the referenced ticket exists. 394 400 xticket = model.Ticket(self.env, ticketnum) 395 # We _assume_ we have sufficient permissions to comment on the other396 # ticket.401 # FIXME: We _assume_ we have sufficient permissions to comment on the 402 # other ticket. 397 403 xticket.save_changes(author, comment) 404 405 # Add a comment to this ticket to indicate that the "remote" ticket is 406 # related to it. (But only if <action>.xref_local was set in the 407 # config.) 408 format_string = actions[action].get('xref_local', 409 'Ticket %s was marked as related to this ticket') 410 if format_string: 411 comment = format_string % ('#%s' % ticketnum) 412 time.sleep(1) # FIXME: Hack around IntegrityError 413 # HACK: Grab a new ticket object to avoid getting 414 # "OperationalError: no such column: new" 415 xticket = model.Ticket(self.env, ticket.id) 416 xticket.save_changes(author, comment) advancedticketworkflowplugin/0.11/setup.py
r3730 r3820 5 5 setup( 6 6 name='AdvancedTicketWorkflowPlugin', 7 version='0. 8',7 version='0.9', 8 8 author = 'Eli Carter', 9 9 author_email = 'elicarter@retracile.net',
