Ticket #1075: xmlrpcplugin-trunk.patch

File xmlrpcplugin-trunk.patch, 1.9 kB (added by stp, 10 months ago)

fixes for trunk

  • tracrpc/api.py

    old new  
    225225        return [','.join([RPC_TYPES[x] for x in sig]) for sig in p.xmlrpc_signatures()] 
    226226 
    227227    def getAPIVersion(self, req): 
    228         """ Returns a list with two elements. First element is the major 
    229         version number, second is the minor. Changes to the major version 
     228        """ Returns a list with three elements. First element is the 
     229        epoch (0=Trac 0.10, 1=Trac 0.11 or higher). Second element is the major 
     230        version number, third is the minor. Changes to the major version 
    230231        indicate API breaking changes, while minor version changes are simple 
    231232        additions, bug fixes, etc. """ 
    232         return [0, 3
     233        return [1, 0, 0
  • tracrpc/ticket.py

    old new  
    9696 
    9797    def update(self, req, id, comment, attributes = {}, notify=False): 
    9898        """ Update a ticket, returning the new ticket in the same form as getTicket(). """ 
    99         now = int(time.time()
     99        now = time.time(
    100100 
    101101        t = model.Ticket(self.env, id) 
    102102        for k, v in attributes.iteritems(): 
  • tracrpc/wiki.py

    old new  
    5151 
    5252    def _page_info(self, name, time, author, version, comment): 
    5353        return dict(name=name, lastModified=xmlrpclib.DateTime(int(time)), 
    54                     author=author, version=int(version), comment=comment
     54                    author=author, version=int(version), comment=comment or ''
    5555 
    5656    def getRecentChanges(self, req, since): 
    5757        """ Get list of changed pages since timestamp """