Package flumotion :: Package twisted :: Module rtsp :: Class ErrorResource
[show private | hide private]
[frames | no frames]

Class ErrorResource

Loggable --+    
           |    
Resource --+    
           |    
RTSPResource --+
               |
              ErrorResource

Known Subclasses:
NoResource

Method Summary
  __init__(self, code, *lines)
  getChild(self, chname, request)
  render(self, request)
Render a given resource.
  render_GET(self, request)
    Inherited from RTSPResource
  getChildWithDefault(self, path, request)
Retrieve a static or dynamically generated child resource from me.
  noputChild(self, path, r)
  render_start(self, request, method)
  render_startCSeqDate(self, request, method)
Set CSeq and Date on response to given request.
    Inherited from Resource
  delEntity(self, name)
  getChildForRequest(self, request)
  getDynamicEntity(self, name, request)
  getStaticEntity(self, name)
  listDynamicEntities(self, request)
  listDynamicNames(self)
  listEntities(self)
  listNames(self)
  listStaticEntities(self)
  listStaticNames(self)
  putChild(self, path, child)
Register a static child.
  reallyPutEntity(self, name, entity)
  render_HEAD(self, request)
Default handling of HEAD method.
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Instance Variable Summary
    Inherited from RTSPResource
tuple allowedMethods: a tuple of allowed methods that can be invoked on this resource.

Class Variable Summary
    Inherited from RTSPResource
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Resource
Implements __implemented__ = <implementedBy twisted.web.resource.Re...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
MetaInterface entityType = <MetaInterface twisted.web.resource.IResour...
int isLeaf = 0                                                                     
NoneType server = None                                                                  

Method Details

render(self, request)

Render a given resource. See IResource's render method.

I delegate to methods of self with the form 'render_METHOD' where METHOD is the HTTP that was used to make the request. Examples: render_GET, render_HEAD, render_POST, and so on. Generally you should implement those methods instead of overriding this one.

render_METHOD methods are expected to return a string which will be the rendered page, unless the return value is twisted.web.server.NOT_DONE_YET, in which case it is this class's responsibility to write the results to request.write(data), then call request.finish().

Old code that overrides render() directly is likewise expected to return a string or NOT_DONE_YET.
Overrides:
twisted.web.resource.Resource.render (inherited documentation)

Generated by Epydoc 2.1 on Sat Apr 14 13:20:43 2007 http://epydoc.sf.net