Changes between Version 1 and Version 2 of Ticket #3678


Ignore:
Timestamp:
02/23/2016 11:52:22 AM (4 years ago)
Author:
trev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3678 – Description

    v1 v2  
    99=== What to change === 
    1010Since we only need the Trac API for communicating between servers controlled by us, we could simply invoke a Python script via SSH that interacts with the Trac environment in the same way plugins do. 
     11 
     12Since we don't want the change the issue status, it should be possible to minify the [https://trac-hacks.org/browser/xmlrpcplugin/trunk/tracrpc/ticket.py#L185 update code in XML-RPC plugin] as follows: 
     13 
     14{{{ 
     15from trac.env import Environment 
     16import trac.ticket.model as model 
     17 
     18env = Environment(env_path) 
     19ticket = model.Ticket(env, ticket_id) 
     20ticket.save_changes(author, comment) 
     21}}}