Package Products :: Package ZenUtils :: Package extdirect :: Module router :: Class DirectResponse
[hide private]
[frames] | no frames]

Class DirectResponse

source code

object --+
         |
        DirectResponse

Encapsulation of the simple protocol used to send results and messages to the front end.

Instance Methods [hide private]
 
__init__(self, msg=None, success=True, **kwargs) source code
 
type(self) source code
 
data(self) source code
 
__setitem__(self, key, value) source code
 
__json__(self) source code
Static Methods [hide private]
 
exception(exception, message=None, **kwargs)
If an exception is raised, use this! It will cause the transaction to be rolled back.
source code
 
fail(msg=None, **kwargs)
If the request has failed for a non-database-impacting reason (e.g., "device already exists"), use this.
source code
 
succeed(msg=None, **kwargs) source code
Class Variables [hide private]
  _data = None
Method Details [hide private]

__init__(self, msg=None, success=True, **kwargs)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

type(self)

source code 
Decorators:
  • @property

data(self)

source code 
Decorators:
  • @property