Laurent Bachelier
448c06d125
pep8 blank lines fixes
...
flake8 --select W391,E302,E301,E304
autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +02:00
Laurent Bachelier
7be9a6468b
logging: Create a new level DEBUG_FILTERS
...
This is a cleaner approach that requires less configuration
in other applications.
This also easily allows us to have another color.
Many checks were made on being exactly at the DEBUG level, they were
fixed to also check on being below DEBUG (i.e. DEBUG_FILTERS).
2014-10-07 17:11:09 +02:00
Florent
5a1d83b567
Rename BaseModule to Module and Module to LoadedModule
2014-09-26 10:18:12 +02:00
Florent
8559af3d6a
s/BaseBackend/BaseModule
2014-09-26 10:18:11 +02:00
Laurent Bachelier
8bf0cba300
core: Use the new vocabulary
2014-09-21 12:13:23 +02:00
Laurent Bachelier
4d63955cb5
Put back wrongly removed __all__
2014-09-10 14:05:08 +02:00
Laurent Bachelier
3da02fde24
Remove useless __all__ in modules
...
They bring nothing of value (we never use import * anyway) and introduce
a maintenance burden.
The __all__ that I left might not be very useful either but at least
they are not a pain to maintain; they are also used by pyflakes in some
cases.
2014-09-09 19:00:02 +02:00
Laurent Bachelier
a7e278a20d
Add support for BASEURL instead of PROTOCOL+DOMAIN
2014-03-22 12:43:53 +01:00
Romain Bignon
badab27702
add class WebNip
2013-08-18 16:30:23 +02:00
Laurent Bachelier
a6ad7e83ff
Use newer form of catching exceptions
...
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +02:00
Laurent Bachelier
59a7a0d842
Explicit module load errors
2013-07-19 19:25:38 +02:00
Laurent Bachelier
7094931c92
Easy spacing fixes, trailing stuff
...
Remove useless trailing \
Remove trailing spaces
Add missing empty lines
autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .
Diff quickly checked.
2013-03-16 00:54:55 +01:00
Romain Bignon
32e965d338
weboob-config add: fix double message "Unable to load module"
2013-01-14 21:22:03 +01:00
Laurent Bachelier
3a66728392
Fix crashes with unicode characters in maintainer name
...
Change every mention of MAINTAINER to avoid future issues.
2012-10-24 13:29:30 +02:00
Romain Bignon
ba1879d501
use imp instead of __import__
2012-05-07 14:03:21 +02:00
Romain Bignon
aa0084a37d
use module imp instead of __import__
2012-05-07 13:59:27 +02:00
Romain Bignon
87a58baa50
correctly check debug level to print exception when a module can't be loaded
2012-04-09 11:22:55 +02:00
Romain Bignon
a94d6c9972
check module version when loading it
2012-02-05 17:08:49 +01:00
Romain Bignon
14a7a1d362
support repositories to manage backends ( closes #747 )
2012-01-17 17:00:05 +01:00
Romain Bignon
7ab8202660
unused import
2011-05-03 16:55:22 +02:00
Romain Bignon
f603c44d6c
fix iter_caps() to not return only immediate base cap classes
2011-05-03 16:11:14 +02:00
Romain Bignon
7e2bb91b3b
change license to AGPLv3+
2011-04-08 12:48:07 +02:00
Romain Bignon
fc38d9e3a4
remove unused imports
2011-03-14 17:38:04 +01:00
Romain Bignon
9cc771f445
remove useless debug messages
2011-03-14 17:28:05 +01:00
Bluebird75
3f40fb2de7
- use an OS independant way of identifying base module directory - use a more portable way of reading stty output
2011-03-14 17:19:53 +01:00
Romain Bignon
fefcf65b8f
catch every exceptions when trying to load a module
2011-03-01 11:09:31 +01:00
Romain Bignon
b6821b0567
fixes related to ModuleLoadError
2010-11-17 19:43:25 +01:00
Christophe Benz
f41d5157c1
return original backtrace only if debug level
2010-11-17 15:36:20 +01:00
Christophe Benz
f0c3e6029a
introduce ModuleLoadError
2010-11-17 15:05:53 +01:00
Christophe Benz
692caf9453
add a quiet mode for load_module
2010-11-17 14:17:38 +01:00
Christophe Benz
b69a31e1b9
python2.5 compatibility (for maemo)
2010-11-01 16:48:17 +01:00
Romain Bignon
84b4003bf4
use several loggers for parts of weboob
2010-10-30 16:09:33 +02:00
Romain Bignon
17e679f3e1
fix getting website if BROWSER is not a BaseBrowser
2010-10-01 09:48:59 +02:00
Romain Bignon
9f5c9aeebc
renamed BackendsLoader to ModulesLoader
2010-08-24 11:03:39 +02:00
Christophe Benz
5c2ab81e16
change vocabulary
...
s/module/backend
s/backend/configured_backend
s/frontend/application
2010-07-12 03:07:10 +02:00
Christophe Benz
b3c509d56e
add existing_module_names method
2010-07-10 02:30:19 +02:00
Christophe Benz
dffda6f673
fix indentation
2010-07-07 17:20:17 +02:00
Christophe Benz
1955d1be59
move core files to weboob.core
2010-07-07 17:20:16 +02:00