Package cubicweb :: Package etwist :: Module server
[hide private]
[frames] | no frames]

Module server

source code

twisted server for CubicWeb web instances
Classes [hide private]
  ForbiddenDirectoryLister
  File
Prevent from listing directories
  LongTimeExpiringFile
overrides static.File and sets a far future Expires date on the resouce.
  CubicWebRootResource
Functions [hide private]
 
start_task(interval, func) source code
 
host_prefixed_baseurl(baseurl, host) source code
 
gotLength(self, length) source code
 
requestReceived(self, command, path, version)
Called by channel when all data has been received.
source code
 
process_multipart(self) source code
 
run(config, vreg=None, debug=None) source code
Variables [hide private]
  JSON_PATHS = set(('json',))
  FRAME_POST_PATHS = set(('validateform',))
  orig_gotLength = http.Request.gotLength
  LOGGER = getLogger('cubicweb.twisted')
Function Details [hide private]

gotLength(self, length)

source code 
Decorators:
  • @monkeypatch(http.Request)

requestReceived(self, command, path, version)

source code 

Called by channel when all data has been received.

This method is not intended for users.

Decorators:
  • @monkeypatch(http.Request)

process_multipart(self)

source code 
Decorators:
  • @monkeypatch(http.Request)