improve the dummy script
This commit is contained in:
parent
2cb52beba5
commit
3d0c80c323
5 changed files with 24 additions and 11 deletions
|
|
@ -1,6 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
|
||||
|
||||
"""
|
||||
Copyright(C) 2010 Romain Bignon
|
||||
|
|
@ -26,8 +24,11 @@ import re
|
|||
from weboob import Weboob
|
||||
|
||||
class BaseApplication(object):
|
||||
# Application name
|
||||
APPNAME = ''
|
||||
# Default configuration
|
||||
CONFIG = {}
|
||||
# Configuration directory
|
||||
CONFDIR = os.path.join(os.path.expanduser('~'), '.weboob')
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ else:
|
|||
return HTMLParser.parse(data, encoding='iso-8859-1')
|
||||
import re
|
||||
import time
|
||||
from logging import warning, error
|
||||
from logging import warning, error, debug
|
||||
from copy import copy
|
||||
|
||||
try:
|
||||
|
|
@ -220,7 +220,7 @@ class Browser(mechanize.Browser):
|
|||
warning('Ho my fucking god, there isn\'t any page named %s' % result.geturl())
|
||||
return
|
||||
|
||||
print '[%s] Gone on %s' % (self.username, result.geturl())
|
||||
debug('[%s] Gone on %s' % (self.username, result.geturl()))
|
||||
self.last_update = time.time()
|
||||
|
||||
document = self.__parser.parse(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue