Mercurial > libervia-web
comparison src/twisted/plugins/libervia_server.py @ 810:3905bc24eb17
server: proper options handling
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 18 Dec 2015 21:29:24 +0100 |
parents | bf562fb9c273 |
children | b1826adbeeff |
comparison
equal
deleted
inserted
replaced
809:c500bdb0c216 | 810:3905bc24eb17 |
---|---|
128 options = Options | 128 options = Options |
129 | 129 |
130 def makeService(self, options): | 130 def makeService(self, options): |
131 initialise(options.parent) | 131 initialise(options.parent) |
132 from libervia.server import server | 132 from libervia.server import server |
133 return server.Libervia(**dict(options)) # get rid of the usage.Option overload | 133 return server.Libervia(options) |
134 | 134 |
135 | 135 |
136 # affectation to some variable is necessary for twisted introspection to work | 136 # affectation to some variable is necessary for twisted introspection to work |
137 serviceMaker = LiberviaMaker() | 137 serviceMaker = LiberviaMaker() |