rpc Package

rpc Package

class tic.web.rpc.JsonRpcDispatcher(compmgr, init=None, cls=<class 'tic.web.rpc.JsonRpcDispatcher'>)[source]

Bases: tic.core.Component

match_request(req)[source]

Return whether the handler wants to process the given request.

process_request(req)[source]

handles all rpc calls and route all JSON Rpc Requests to its right method call

api Module

exception tic.web.rpc.api.CustomJsException[source]

Bases: exceptions.Exception

raise this exception only if you know what your doing

the message of this exception will be evaluated in the browser

so if you raise CustomJsException(‘console.log(“exception from python”)’) it will log it in the browser’s console

class tic.web.rpc.api.IJsonRpcService[source]

Bases: tic.core.Interface

Marker interface for all json rpc services

json Module

Copyright (c) 2007 Jan-Klaas Kollhof

This file is part of jsonrpc.

jsonrpc is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

exception tic.web.rpc.json.JSONDecodeException(message)[source]

Bases: exceptions.Exception

exception tic.web.rpc.json.JSONEncodeException(obj)[source]

Bases: exceptions.Exception

tic.web.rpc.json.dumpParts(obj)[source]
tic.web.rpc.json.dumps(obj)[source]
tic.web.rpc.json.escapeChar(match)[source]
tic.web.rpc.json.loads(s)[source]

serviceHandler Module

exception tic.web.rpc.serviceHandler.BadServiceRequest[source]

Bases: tic.web.rpc.serviceHandler.ServiceException

exception tic.web.rpc.serviceHandler.ServiceException[source]

Bases: exceptions.Exception

class tic.web.rpc.serviceHandler.ServiceHandler(compmgr, init=None, cls=<class 'tic.web.rpc.serviceHandler.ServiceHandler'>)[source]

Bases: tic.core.Component

handle_request(json, request)[source]
services

List of components that implement tic.web.rpc.api.IJsonRpcService

exception tic.web.rpc.serviceHandler.ServiceMethodNotFound(name)[source]

Bases: tic.web.rpc.serviceHandler.ServiceException

exception tic.web.rpc.serviceHandler.ServiceRequestNotTranslatable[source]

Bases: tic.web.rpc.serviceHandler.ServiceException

Table Of Contents

Previous topic

tests Package

This Page