unused code, imports, or variables
This commit is contained in:
parent
42de7aa5a3
commit
54cc3b0a4a
5 changed files with 4 additions and 8 deletions
|
|
@ -35,7 +35,7 @@ class LoginPage(CragrBasePage):
|
||||||
try:
|
try:
|
||||||
self.browser['userLogin'] = login
|
self.browser['userLogin'] = login
|
||||||
self.browser['userPassword'] = password
|
self.browser['userPassword'] = password
|
||||||
except ClientForm.ControlNotFoundError, e:
|
except ClientForm.ControlNotFoundError:
|
||||||
self.browser.controls.append(ClientForm.TextControl('text', 'userLogin', {'value': ''}))
|
self.browser.controls.append(ClientForm.TextControl('text', 'userLogin', {'value': ''}))
|
||||||
self.browser.controls.append(ClientForm.TextControl('text', 'userPassword', {'value': ''}))
|
self.browser.controls.append(ClientForm.TextControl('text', 'userPassword', {'value': ''}))
|
||||||
self.browser.set_all_readonly(False)
|
self.browser.set_all_readonly(False)
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ from mako.lookup import TemplateLookup
|
||||||
import wee
|
import wee
|
||||||
from wsgiref.simple_server import make_server
|
from wsgiref.simple_server import make_server
|
||||||
|
|
||||||
from weboob.capabilities.messages import ICapMessages, ICapMessagesReply
|
from weboob.capabilities.messages import ICapMessages
|
||||||
from weboob.tools.application import BaseApplication
|
from weboob.tools.application import BaseApplication
|
||||||
|
|
||||||
class HTTPApplication(BaseApplication):
|
class HTTPApplication(BaseApplication):
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ class ModulesLoader:
|
||||||
return self.modules[name]
|
return self.modules[name]
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
path = backends.__path__[0]
|
path = weboob.backends.__path__[0]
|
||||||
regexp = re.compile('^%s/([\w\d_]+)$' % path)
|
regexp = re.compile('^%s/([\w\d_]+)$' % path)
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
m = regexp.match(root)
|
m = regexp.match(root)
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class BaseApplication(object):
|
||||||
"""
|
"""
|
||||||
if klass is None:
|
if klass is None:
|
||||||
# load StandardStorage only here because some applications don't
|
# load StandardStorage only here because some applications don't
|
||||||
# want # to depend on yaml and do not use this function
|
# want to depend on yaml and do not use this function
|
||||||
from weboob.tools.storage import StandardStorage
|
from weboob.tools.storage import StandardStorage
|
||||||
klass = StandardStorage
|
klass = StandardStorage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,6 @@ except ImportError, e:
|
||||||
|
|
||||||
from mechanize import CookieJar, Cookie
|
from mechanize import CookieJar, Cookie
|
||||||
|
|
||||||
#import sys, logging
|
|
||||||
#logger = logging.getLogger("mechanize")
|
|
||||||
#logger.addHandler(logging.StreamHandler(sys.stdout))
|
|
||||||
#logger.setLevel(logging.DEBUG)
|
|
||||||
|
|
||||||
class FirefoxCookieJar(CookieJar):
|
class FirefoxCookieJar(CookieJar):
|
||||||
def __init__(self, domain, sqlite_file=None, policy=None):
|
def __init__(self, domain, sqlite_file=None, policy=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue