Fix jsonrpc strip of "sao/" for issue1555

This commit is contained in:
Cédric Krier committed 2010-05-04 23:33:08 +02:00
1 parent 55288155f5
commit c77ce123c5
1 file changed
+3 -1
+3 -1
View File
@@ -116,7 +116,9 @@ class GenericJSONRPCRequestHandler:
def _dispatch(self, method, params):
host, port = self.client_address[:2]
database_name = self.path[1:].strip('sao/')
database_name = self.path[1:]
if database_name.startswith('sao/'):
database_name = database_name[4:]
method_list = method.split('.')
object_type = method_list[0]
object_name = '.'.join(method_list[1:-1])