Changeset 1278
- Timestamp:
- 09/19/06 06:01:15 (2 years ago)
- Files:
-
- xmlrpcplugin/0.10/setup.py (modified) (1 diff)
- xmlrpcplugin/0.10/tracrpc/api.py (modified) (3 diffs)
- xmlrpcplugin/0.10/tracrpc/search.py (modified) (1 diff)
- xmlrpcplugin/0.10/tracrpc/ticket.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
xmlrpcplugin/0.10/setup.py
r511 r1278 4 4 5 5 setup( 6 name ='TracXMLRPC',7 version ='0.1',8 author ='Alec Thomas',9 author_email ='alec@swapoff.org',10 url ='http://trac-hacks.swapoff.org/wiki/XmlRpcPlugin',11 description ='XML-RPC interface to Trac',6 name='TracXMLRPC', 7 version='0.1', 8 author='Alec Thomas', 9 author_email='alec@swapoff.org', 10 url='http://trac-hacks.swapoff.org/wiki/XmlRpcPlugin', 11 description='XML-RPC interface to Trac', 12 12 zip_safe=True, 13 13 packages=['tracrpc'], xmlrpcplugin/0.10/tracrpc/api.py
r1188 r1278 158 158 yield ('XML_RPC', ((str, str),), self.methodHelp) 159 159 yield ('XML_RPC', ((list, str),), self.methodSignature) 160 yield ('XML_RPC', ((list,),), self.getAPIVersion) 160 161 161 162 def get_method(self, method): … … 163 164 for provider in self.method_handlers: 164 165 for candidate in provider.xmlrpc_methods(): 165 self.env.log.debug(candidate)166 #self.env.log.debug(candidate) 166 167 p = Method(provider, *candidate) 167 168 if p.name == method: … … 218 219 req.perm.assert_permission(p.permission) 219 220 return [','.join([RPC_TYPES[x] for x in sig]) for sig in p.xmlrpc_signatures()] 221 222 def getAPIVersion(self, req): 223 """ Returns a list with two elements. First element is the major 224 version number, second is the minor. Changes to the major version 225 indicate API breaking changes, while minor version changes are simple 226 additions, bug fixes, etc. """ 227 return [0, 1] xmlrpcplugin/0.10/tracrpc/search.py
r477 r1278 49 49 for source in self.search_sources: 50 50 for result in source.get_search_results(req, query, filters): 51 result = map(unicode, result) 51 52 results.append(['/'.join(req.base_url.split('/')[0:3]) 52 53 + result[0]] + list(result[1:])) xmlrpcplugin/0.10/tracrpc/ticket.py
r1188 r1278 36 36 self.putAttachment) 37 37 yield ('TICKET_ADMIN', ((bool, int, str),), self.deleteAttachment) 38 yield ('TICKET_VIEW', ((list,),), self.getTicketFields) 38 39 39 40 # Exported methods … … 136 137 return True 137 138 139 def getTicketFields(self, req): 140 """ Return a list of all ticket fields fields. """ 141 return TicketSystem(self.env).get_ticket_fields() 142 138 143 139 144 def ticketModelFactory(cls, cls_attributes):
