1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-10 18:40:53 +00:00

Configuration cleanup.

This commit is contained in:
Guillaume Ayoub 2010-01-16 13:33:50 +01:00
parent 4ee09cf817
commit f1c8497f3b
6 changed files with 37 additions and 25 deletions

View file

@ -27,13 +27,14 @@
"""
Radicale Server entry point.
Launch the Radicale Serve according to the configuration.
Launch the Radicale Server according to the configuration.
"""
import radicale
if radicale.config.get("server", "type") == "http":
if radicale.config.get("server", "protocol") == "http":
server = radicale.server.HTTPServer(
("", radicale.config.getint("server", "port")),
(radicale.config.get("server", "name"),
radicale.config.getint("server", "port")),
radicale.CalendarHandler)
server.serve_forever()