Module api :: Class Response
[hide private]
[frames] | no frames]

Class Response
source code

     object --+    
              |    
BagOfAttributes --+
                  |
                 Response

example:
   <Response rdf:about="">
     <code>[ HTTP response code will be echoed here ]</code>
     <message>[ A nice plain text message to pass on to the user ]</message>
     <isSuccess>1</isSuccess>
     <!-- or -->
     <isFailure>1</isFailure>
     <!-- Note that only one of either isSuccess or isFailure will be present -->
     <user>[ the name of the user making the request ]</user>
     <apiVersion>0.1.0</apiVersion>
     <bibliotechVersion>1.7.1</bibliotechVersion>
   </Response>
or:
   <code>404</code>
   <message>No items found</message>
   <isFailure>1</isFailure>


Instance Methods [hide private]
  __init__(self, dom)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from BagOfAttributes: __repr__

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


Class Variables [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, dom)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)