Commits

Olemis Lang committed ef64b2a

BH RPC : Fix error rendering RPC docs

- Missing signatures for product.create method.
- xmlrpclib.DateTime => datetime in timeline and version control RPC

  • Participants
  • Parent commits de99bad

Comments (0)

Files changed (4)

File trunk/bhrpc/product.py

         yield (None, ((None, str,),), self.delete)
         yield (None, ((None, str, dict),), self.update)
         yield (None, ((None, str, str),), self.chown)
-        yield (None, ((None, str, str),), self.create)
+        yield (None, ((None, str, str),
+                      (None, str, str, str),
+                      (None, str, str, str, str)), self.create)
 
     # Exported methods
     def getAll(self, req, owner=None):

File trunk/tracrpc/__init__.py

 from tracrpc.wiki import *
 from tracrpc.search import *
 
+from tracrpc.report import *
+from tracrpc.timeline import *
+from tracrpc.versioncontrol import *
+
 __author__ = ['Alec Thomas <alec@swapoff.org>',
               'Odd Simon Simonsen <simon-code@bvnetwork.no>']
 __license__ = 'BSD'

File trunk/tracrpc/timeline.py

     
     def xmlrpc_methods(self):
         yield ('TIMELINE_VIEW', 
-                ((list, xmlrpclib.DateTime, xmlrpclib.DateTime, list),
-                 (list, xmlrpclib.DateTime, xmlrpclib.DateTime), 
-                 (list, xmlrpclib.DateTime), 
+                ((list, datetime, datetime, list),
+                 (list, datetime, datetime), 
+                 (list, datetime), 
                  (list, )), 
                  self.getEvents)
         yield ('TIMELINE_VIEW', ((list,),), self.getEventFilters)

File trunk/tracrpc/versioncontrol.py

                 ((list, list, str),
                  (list, list),), 
                  self.getFileAttributes)
-        opt_types = [str, xmlrpclib.DateTime]
+        opt_types = [str, datetime]
         yield ('CHANGESET_VIEW', 
                 tuple(rpc_opt_sigs(list, None, opt_types, \
                                     opt_types, [bool])
                   ), 
                  self.getRevisions)
         yield ('CHANGESET_VIEW', 
-                ((list, str, str, xmlrpclib.DateTime),
+                ((list, str, str, datetime),
                  (list, str, str, str),
                  (list, str, str),
                  (list, str),),