equal
deleted
inserted
replaced
39 custom.postinit(vreg) |
39 custom.postinit(vreg) |
40 |
40 |
41 from cubicweb.wsgi.handler import CubicWebWSGIApplication |
41 from cubicweb.wsgi.handler import CubicWebWSGIApplication |
42 application = CubicWebWSGIApplication(config, vreg=vreg) |
42 application = CubicWebWSGIApplication(config, vreg=vreg) |
43 |
43 |
44 # main function so this handler module is cached |
44 # main function so this handler module is cached |
45 def main(): |
45 def main(): |
46 from wsgiref.handlers import CGIHandler |
46 from wsgiref.handlers import CGIHandler |
47 CGIHandler().run(application) |
47 CGIHandler().run(application) |
48 |
48 |
49 if __name__ == "__main__": |
49 if __name__ == "__main__": |