Package myproxy :: Package server :: Package wsgi :: Module middleware :: Class MyProxyClientMiddlewareBase
[hide private]

Class MyProxyClientMiddlewareBase

source code


Base class for common functionality

Instance Methods [hide private]
 
__init__(self, app)
Create WSGI app and MyProxy client attributes
source code
basestring
_getClientEnvironKeyName(self)
Get MyProxyClient environ key name
source code
 
_setClientEnvironKeyName(self, value)
Set MyProxyClient environ key name
source code
function
app(self)
Get Property method for reference to next WSGI application in call stack
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
string
getStatusMessage(statusCode)
Make a standard status message for use with start_response
source code
Class Variables [hide private]
string CLIENT_ENV_KEYNAME_OPTNAME = 'clientEnvKeyName'
ini file option which sets the key name in the WSGI environ for referring to the MyProxy client instance shared between MyProxy* middleware/apps
string DEFAULT_CLIENT_ENV_KEYNAME = 'myproxy.server.wsgi.middleware.'...
default value for key name set in the WSGI environ dict which refers to the MyProxy client instance shared between MyProxy* middleware/apps
  clientEnvironKeyName = property(fget= _getClientEnvironKeyName...
Instance Variables [hide private]
function __app
WSGI callable for next middleware or app in the WSGI stack
string __clientEnvironKeyName
key name set in the WSGI environ dict which refers to the MyProxy client instance shared between MyProxy* middleware/ apps
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, app)
(Constructor)

source code 

Create WSGI app and MyProxy client attributes

Parameters:
  • app (function) - WSGI callable for next middleware or app in the WSGI stack
Overrides: object.__init__

_getClientEnvironKeyName(self)

source code 

Get MyProxyClient environ key name

Returns: basestring
MyProxyClient environ key name

_setClientEnvironKeyName(self, value)

source code 

Set MyProxyClient environ key name

Parameters:
  • value (basestring) - MyProxyClient environ key name

app(self)

source code 

Get Property method for reference to next WSGI application in call stack

Returns: function
WSGI application
Decorators:
  • @property

getStatusMessage(statusCode)
Static Method

source code 

Make a standard status message for use with start_response

Parameters:
  • statusCode (int) - HTTP status code
Returns: string
status code with standard message
Raises:
  • KeyError - for invalid status code

Class Variable Details [hide private]

DEFAULT_CLIENT_ENV_KEYNAME

default value for key name set in the WSGI environ dict which refers to the MyProxy client instance shared between MyProxy* middleware/apps
Type:
string
Value:
'myproxy.server.wsgi.middleware.' 'MyProxyClientMiddleware.myProxyClie\
nt'

clientEnvironKeyName

Value:
property(fget= _getClientEnvironKeyName, fset= _setClientEnvironKeyNam\
e, doc= "key name in environ for the " "MyProxyClient instance")