Ticket #1075: xmlrpcplugin-trunk.patch
| File xmlrpcplugin-trunk.patch, 1.9 kB (added by stp, 10 months ago) |
|---|
-
tracrpc/api.py
old new 225 225 return [','.join([RPC_TYPES[x] for x in sig]) for sig in p.xmlrpc_signatures()] 226 226 227 227 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 230 231 indicate API breaking changes, while minor version changes are simple 231 232 additions, bug fixes, etc. """ 232 return [ 0, 3]233 return [1, 0, 0] -
tracrpc/ticket.py
old new 96 96 97 97 def update(self, req, id, comment, attributes = {}, notify=False): 98 98 """ Update a ticket, returning the new ticket in the same form as getTicket(). """ 99 now = int(time.time())99 now = time.time() 100 100 101 101 t = model.Ticket(self.env, id) 102 102 for k, v in attributes.iteritems(): -
tracrpc/wiki.py
old new 51 51 52 52 def _page_info(self, name, time, author, version, comment): 53 53 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 '') 55 55 56 56 def getRecentChanges(self, req, since): 57 57 """ Get list of changed pages since timestamp """
