server.py 315 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. from openerp.service.server import ThreadedServer
  3. class ThreadedServerOptimized(ThreadedServer):
  4. def __init__(self, app):
  5. super(ThreadedServer, self).__init__(app)
  6. def start(self, stop=False):
  7. super(ThreadedServer, self).start(stop)
  8. print ('monitoring')