RPC server commands
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes
- class FtRpcCommand
-
Methods
- __init__(self)
- send(self, stream)
-
Send a Command and get a response from the server
Members
- expected = None
- class LoginCommand(FtRpcCommand)
-
Login a user to the repository
Methods
- __init__(self, userName, password)
- Overrides: __init__ from class FtRpcCommand
Methods inherited from class FtRpcCommand
Members
- command = 1
- expected = 1
- class LogoutCommand(FtRpcCommand)
-
Logout a user from the repository
Methods
- __init__(self, commit)
- Overrides: __init__ from class FtRpcCommand
Methods inherited from class FtRpcCommand
Members
- command = 2
- expected = 1
- class RemoteMethodCommand(FtRpcCommand)
-
Execute a Remote Method on an object. Return its results
Methods
- __init__(self, methodName, baseObject, args)
- Overrides: __init__ from class FtRpcCommand
Methods inherited from class FtRpcCommand
Members
- command = 4
- expected = 4
- class RemoteRdfCommand(FtRpcCommand)
-
Execute a Remote Method on the model. Return its results
Methods
- __init__(self, methodName, baseObject, args, kw=None)
- Overrides: __init__ from class FtRpcCommand
Methods inherited from class FtRpcCommand
Members
- command = 5
- expected = 6
- class ResourceTypeCommand(FtRpcCommand)
-
This command will return the resource type of an object given a certain path
It can also be used to check for the exsistence of an object. It always returns an error or
a resource type response
Methods
- __init__(self, path, baseObject)
- Overrides: __init__ from class FtRpcCommand
Methods inherited from class FtRpcCommand
Members
- command = 3
- expected = 3
Globals
- g_commandMapping = {1: <class Ft.Server.FtRpc.Commands.LoginCommand>, 2: <class Ft.Server.FtRpc.Commands.LogoutCommand>, 3: <class Ft.Server.FtRpc.Commands.ResourceTypeCommand>, 4: <class Ft.Server.FtRpc.Commands.RemoteMethodCommand>, 5: <class Ft.Server.FtRpc.Commands.RemoteRdfCommand>}