34 lines
950 B
Python
Executable File
34 lines
950 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright 2010 Maurizio Porrato <maurizio.porrato@gmail.com>
|
|
# See LICENSE.txt for copyright info
|
|
|
|
from twisted.internet import reactor
|
|
from frn.protocol.manager import FRNManagerServer, FRNManagerServerFactory
|
|
from twisted.enterprise.adbapi import ConnectionPool
|
|
from frn.manager.dummy import DummyManager
|
|
from frn.manager.remote import RemoteManager
|
|
from frn.user import FRNUser
|
|
from twisted.python import log
|
|
|
|
if __name__ == '__main__':
|
|
import sys
|
|
|
|
log.startLogging(sys.stderr)
|
|
|
|
def standardManagerFactory():
|
|
log.msg("Building Manager")
|
|
return RemoteManager(reactor)
|
|
|
|
reactor.listenTCP(10025, FRNManagerServerFactory(
|
|
# DatabaseUserStore(
|
|
# ConnectionPool("sqlite3", "frn_users.sqlite3",
|
|
# check_same_thread=False)),
|
|
# DummyManager()
|
|
standardManagerFactory
|
|
))
|
|
reactor.run()
|
|
|
|
# vim: set et ai sw=4 ts=4 sts=4:
|