loops/agent/loops.tac
helmutm d66bd7591c Work in progress: set up basic agent functionality (with unit tests...)
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1783 fd906abe-77d9-0310-91a1-e0d9ade77398
2007-06-09 15:42:11 +00:00

15 lines
415 B
Python

from twisted.application import internet, service
from nevow import appserver
from loops.agent.core import Agent
from loops.agent.ui.web import AgentHome
from loops.agent.config import conf
port = conf.ui.web.port or 10095
application = service.Application('LoopsAgent')
site = appserver.NevowSite(resource=AgentHome(Agent()))
webServer = internet.TCPServer(port, site)
webServer.setServiceParent(application)