Package wtf :: Package app :: Module http_response :: Class NotAcceptable
[hide private]
[frames] | no frames]

Class NotAcceptable

source code

              object --+            
exceptions.BaseException --+        
       exceptions.SystemExit --+    
                    HTTPResponse --+

406 Not Acceptable (RFC 2616)
Instance Methods [hide private]
init(self, variants, descriptions=None)
Add the variant list
source code

Inherited from HTTPResponse: __init__, body, headers

Inherited from exceptions.SystemExit: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
str message = '<p>An appropriate representation of the requested r...
Message template
str reason = 'Not Acceptable'
HTTP response reason phrase
int status = 406
HTTP response status

Inherited from HTTPResponse (private): _FRAME

Instance Variables [hide private]

Inherited from HTTPResponse: param

Inherited from HTTPResponse (private): _content_type, _escaped, _replace

Properties [hide private]

Inherited from exceptions.SystemExit: code

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details [hide private]

init(self, variants, descriptions=None)

source code 
Add the variant list
  • variants (iterable) - The variant URLs
  • descriptions (dict) - variant descriptions, the url is the key
Returns: tuple
Tuple of unescaped and escaped parameters ((dict, dict))
Overrides: HTTPResponse.init

Class Variable Details [hide private]


Message template
'''<p>An appropriate representation of the requested resource %(url)s
could not be found on this server.</p>
Available variants: