Package grassyknoll :: Package frontend :: Module RestCollection :: Class CollectionApplication
[hide private]

Class CollectionApplication

source code


Nested Classes [hide private]
RestRequest subclass requestType
class to use for creating Requests.
Instance Methods [hide private]
 
__init__(self, collection, model)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
loadJson(self, request)
load python objects from JSON in request
source code
RestResponse
dumpJson(self, request, obj)
dump a JSON representation of obj to a response
source code
 
loadFormData(self, request)
load python objects from form data in request
source code
RestResponse
dumpHtml(self, request, obj)
dump a HTML representation of obj to a response
source code
RestResponse
dumpPlain(self, request, obj)
dump a plain-text representation of obj to a response
source code

Inherited from EasyRest.RestApplication: __call__, onError

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

Class Variables [hide private]
  templates = Bunch()

Inherited from EasyRest.RestApplication: mimetype2format

Instance Variables [hide private]

Inherited from EasyRest.RestApplication: dumpSpatch, loadSpatch, view

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, collection, model)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: EasyRest.RestApplication.__init__

dumpJson(self, request, obj)

source code 
dump a JSON representation of obj to a response
Parameters:
  • request (CollectionRequest) - the current Request
  • obj (object) - the object to dump
Returns: RestResponse

dumpHtml(self, request, obj)

source code 
dump a HTML representation of obj to a response
Parameters:
  • request (CollectionRequest) - the current Request
  • obj (object) - the object to dump
Returns: RestResponse

dumpPlain(self, request, obj)

source code 
dump a plain-text representation of obj to a response
Parameters:
  • request (CollectionRequest) - the current Request
  • obj (object) - the object to dump
Returns: RestResponse