from Plugins.Plugin import PluginDescriptor
-from twisted.internet import reactor
+from twisted.internet import reactor, defer
+
from twisted.web2 import server, channel, static, resource, stream, http_headers, responsecode, http
+from twisted.web2.auth import digest, basic, wrapper
+
from twisted.python import util
from twisted.python.log import startLogging,discardLogs
+from twisted.cred.portal import Portal, IRealm
+from twisted.cred import checkers, credentials, error
+
+from zope.interface import Interface, implements
+
import webif
import WebIfConfig
import os
DEBUG = False
DEBUGFILE= "/tmp/twisted.log"
-from twisted.cred.portal import Portal
-from twisted.cred import checkers
-from twisted.web2.auth import digest, basic, wrapper
-from zope.interface import Interface, implements
-from twisted.cred import portal
-from twisted.cred import credentials, error
-from twisted.internet import defer
-from zope import interface
-
-
def stopWebserver():
reactor.disconnectAll()
this checks webiflogins agains /etc/passwd
"""
passwordfile = "/etc/passwd"
- interface.implements(checkers.ICredentialsChecker)
+ implements(checkers.ICredentialsChecker)
credentialInterfaces = (credentials.IUsernamePassword,credentials.IUsernameHashedPassword)
def _cbPasswordMatch(self, matched, username):
implements(IHTTPUser)
class HTTPAuthRealm(object):
- implements(portal.IRealm)
+ implements(IRealm)
def requestAvatar(self, avatarId, mind, *interfaces):
if IHTTPUser in interfaces:
return IHTTPUser, HTTPUser()
UpdateStreamReaderStart();
UpdateStreamReaderPollTimerCounterTwisted++;
- if(UpdateStreamReaderPollTimerCounterTwisted > 5) {
+/*
+ if(UpdateStreamReaderPollTimerCounterTwisted > 5) {
UpdateStreamReaderPollTimerCounterTwisted = 0;
debug("restarting twisted");
debug(new Ajax.Request( "/web/restarttwisted", { method: 'get' }));
debug("...twisted restart");
}
+*/
return;
}
// Quickhack jjbig end
from Components.Sources.Clock import Clock
from Components.Sources.ServiceList import ServiceList
+
from WebComponents.Sources.Volume import Volume
from WebComponents.Sources.EPG import EPG
from WebComponents.Sources.Timer import Timer
from WebComponents.Sources.SubServices import SubServices
from WebComponents.Sources.ParentControl import ParentControl
from WebComponents.Sources.About import About
-
from WebComponents.Sources.RequestData import RequestData
+
from Components.Sources.FrontendStatus import FrontendStatus
from Components.Converter.Converter import Converter
from xml.sax import make_parser
from xml.sax.handler import ContentHandler, feature_namespaces
+
from twisted.python import util
+
import sys
import time
# prototype of the new web frontend template system.
class WebScreen(Screen):
- def __init__(self, session,request):
+ def __init__(self, session, request):
Screen.__init__(self, session)
self.stand_alone = True
self.request = request