__init__.py 331 Bytes
Newer Older
Kevin Deldycke's avatar
Kevin Deldycke committed
1 2 3 4 5 6 7 8 9
from ZServer.datatypes import ServerFactory

class TimerServerFactory(ServerFactory):
    def __init__(self, section):
        ServerFactory.__init__(self)
        self.interval = section.interval

    def create(self):
        from timerserver.TimerServer import TimerServer
10
        return TimerServer(self.module, self.interval)