Package pyamf :: Package remoting :: Package gateway
[hide private]
[frames] | no frames]

Package gateway

source code

Remoting server implementations.


Since: 0.1.0

Submodules [hide private]

Classes [hide private]
  BaseServiceError
Base service error.
  UnknownServiceError
Client made a request for an unknown service.
  UnknownServiceMethodError
Client made a request for an unknown method.
  InvalidServiceMethodError
Client made a request for an invalid methodname.
  ServiceWrapper
Wraps a supplied service with extra functionality.
  ServiceRequest
Remoting service request.
  ServiceCollection
I hold a collection of services, mapping names to objects.
  BaseGateway
Generic Remoting gateway.
Functions [hide private]
 
authenticate(func, c, expose_request=False)
A decorator that facilitates authentication per method.
source code
 
expose_request(func)
A decorator that adds an expose_request flag to the underlying callable.
source code
 
preprocess(func, c, expose_request=False)
A decorator that facilitates preprocessing per method.
source code
 
format_exception() source code
Variables [hide private]
  impl = 'Python'
  SERVER_NAME = 'PyAMF/0.5.1 Python/2.5.2'

Imports: sys, types, datetime, pyamf, remoting, util, python_implementation


Function Details [hide private]

authenticate(func, c, expose_request=False)

source code 

A decorator that facilitates authentication per method. Setting expose_request to True will set the underlying request object (if there is one), usually HTTP and set it to the first argument of the authenticating callable. If there is no request object, the default is None.

Raises:
  • TypeError - func and authenticator must be callable.

expose_request(func)

source code 

A decorator that adds an expose_request flag to the underlying callable.

Raises:
  • TypeError - func must be callable.

preprocess(func, c, expose_request=False)

source code 

A decorator that facilitates preprocessing per method. Setting expose_request to True will set the underlying request object (if there is one), usually HTTP and set it to the first argument of the preprocessing callable. If there is no request object, the default is None.

Raises:
  • TypeError - func and preprocessor must be callable.