equal
deleted
inserted
replaced
20 |
20 |
21 # You should have received a copy of the GNU Lesser General Public |
21 # You should have received a copy of the GNU Lesser General Public |
22 # License along with this library; if not, write to the Free Software |
22 # License along with this library; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
24 |
24 |
|
25 |
|
26 from __future__ import print_function |
25 import os |
27 import os |
26 import util.paths as paths |
28 import util.paths as paths |
27 from nevow import rend, appserver, inevow, tags, loaders, athena |
29 from nevow import rend, appserver, inevow, tags, loaders, athena |
28 from nevow.page import renderer |
30 from nevow.page import renderer |
29 from twisted.python import util |
31 from twisted.python import util |
183 website = WebInterface() |
185 website = WebInterface() |
184 site = appserver.NevowSite(website) |
186 site = appserver.NevowSite(website) |
185 |
187 |
186 listening = False |
188 listening = False |
187 reactor.listenTCP(port, site) |
189 reactor.listenTCP(port, site) |
188 print _("HTTP interface port :"), port |
190 print(_('HTTP interface port :'), port) |
189 return website |
191 return website |
190 |
192 |
191 |
193 |
192 class statuslistener: |
194 class statuslistener: |
193 def __init__(self, site): |
195 def __init__(self, site): |