etwist/server.py
changeset 5330 19bc44f5f9d1
parent 5328 c51e8f62652a
child 5335 9aed0b607130
equal deleted inserted replaced
5329:a8cd0570e3d6 5330:19bc44f5f9d1
   117         self.https_url = config['https-url']
   117         self.https_url = config['https-url']
   118         self.children = {}
   118         self.children = {}
   119         self.static_directories = set(('data%s' % config.instance_md5_version(),
   119         self.static_directories = set(('data%s' % config.instance_md5_version(),
   120                                        'data', 'static', 'fckeditor'))
   120                                        'data', 'static', 'fckeditor'))
   121         global MAX_POST_LENGTH
   121         global MAX_POST_LENGTH
   122         MAX_POST_LENGTH = config['max-post-length'] * 1024 * 1024
   122         MAX_POST_LENGTH = config['max-post-length']
   123 
   123 
   124     def init_publisher(self):
   124     def init_publisher(self):
   125         config = self.config
   125         config = self.config
   126         # when we have an in-memory repository, clean unused sessions every XX
   126         # when we have an in-memory repository, clean unused sessions every XX
   127         # seconds and properly shutdown the server
   127         # seconds and properly shutdown the server