Exemplo n.º 1
0
 def serve(self):
     self.build()
     get_reactor(self.reactor_type).run()
Exemplo n.º 2
0
 def build(self):
     reactor = get_reactor(self.reactor_type)
     if not hasattr(self,'root'):
         from .resources import builserver
         builserver(self, reactor)
     return self