

import iCal
import schedule

from nevow import appserver

from twisted.application import service
from twisted.application import internet

application = service.Application('Schedule')
webservice = internet.TCPServer(
    8080,
    appserver.NevowSite(schedule.ScheduleRoot(iCal.ICalReader('Moon_Days.ics')))
)
webservice.setServiceParent(application)

