Bezleputh
21affed283
handle attribute error when stdout does not habe encoding attribute (ie xbmcout)
2015-01-11 12:06:16 +01:00
Florent
d6da9843db
Set copyright in applications
2014-10-17 17:57:42 +02:00
Laurent Bachelier
4f897a8675
pep8: Fix object comparisons
2014-10-11 01:46:25 +02:00
Laurent Bachelier
7aeb3e942e
pep8: Fix indentation is not a multiple of four
...
autopep8 -a -r -i --select E111 .
Manual check.
2014-10-11 01:41:00 +02:00
Laurent Bachelier
21e8f82fd7
pep8: Use "X not in Y" instead of "not X in Y"
...
flake8 --select E713, semi-manual fixing
2014-10-11 01:27:24 +02:00
Florent
2d5bd37756
Documentation on -dd
2014-10-09 13:33:43 +02:00
Bezleputh
d73c6b2245
Add a " LIMIT " keyword in conditions
2014-10-08 13:05:40 +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
Laurent Bachelier
24aea160b1
logging: Output to stderr, not stdout
2014-10-07 16:10:51 +02:00
Romain Bignon
d61e15cf84
rename things related to browsers
...
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions
Also, the new tree for browser2 is:
weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Florent
9949bbf919
Move exceptions to weboob.core.exceptions
2014-10-02 11:04:14 +02:00
Florent
990bb056eb
Replace -D with -dd
2014-10-02 10:56:11 +02:00
Florent
23aec4046c
Add -D option to base applications
2014-10-02 10:56:11 +02:00
Florent
a64c9f2edb
Rename BaseApplication to Application
2014-09-26 10:18:12 +02:00
Laurent Bachelier
e9c047ce93
applications: Define std* in the proper class
...
This would make weboob-debug unusable, for example.
2014-09-18 12:49:26 +02:00
Laurent Bachelier
c07e23cafc
Use class attributes as much as possible for application output
...
refs #803
2014-09-04 12:41:25 +02:00
Florent
ce1a00acce
Import of FormFieldConversionWarning can not fail anymore
...
The test was here for python3 user, to not import browser1.
Since the load of the exception does not need browser1 anymore (see
"Remove import of browser1 in BaseApplication"), this check is useless
2014-07-09 15:53:46 +02:00
Florent
8a2a1ece5e
Do not always import module used only in debug mode
2014-07-09 10:23:24 +02:00
Florent
f7cd0abc3b
Remove import of browser1 in BaseApplication
2014-07-08 17:15:39 +02:00
Romain Bignon
51958135cb
rename CapBaseObject to BaseObject (refs #1424 )
2014-07-05 17:26:05 +02:00
Romain Bignon
6fcac89dd5
first step in python3 support
2014-05-17 14:27:55 +02:00
Florent
b593e69e64
Do no fill obj if it is not a CapObject
2014-05-08 12:19:57 +02:00
Florent
2915a04eba
Do not display warning message if -n or count is set
...
Someone using the count option is already aware of the limitations. The
warning is useless.
2014-05-06 17:05:06 +02:00
Romain Bignon
79566fbbf3
soometimes, a backend method can return None
2014-04-14 20:45:44 +02:00
Florent
83e0f92be7
Field obj.backend in _do_complete_obj
...
The obj.backend is traditionnaly filled by _store_result, in
BackendsCall. It is to late to test the result in condition.
2014-04-09 10:29:07 +02:00
Romain Bignon
42028c390f
add a 'settings' attribute on loggers to store user values like 'save_responses', 'responses_dirname', 'ssl_insecure', etc.
2014-03-25 22:58:35 +01:00
Laurent Bachelier
f20f73a9cd
Hide wrong pyflakes/flake8 error
2014-03-22 01:03:38 +01:00
Laurent Bachelier
fca0ab8733
Quick and dirty -a and -I support for Browser2
2014-03-13 22:04:20 +01:00
Romain Bignon
536bc13347
catch ^C on global bcall errors handler
2014-01-31 17:13:58 +01:00
Florent
20917a1efe
Better formatting of version number in debug
...
Thanks to Romain
2014-01-20 14:44:02 +01:00
Florent
8ed0c7f87c
Add version information in Debug
2014-01-20 11:26:11 +01:00
Florent
af33442ba2
Catch error in condition evaluation
...
And return a better message to users
2014-01-06 15:02:04 +01:00
Florent
3fa2a8ba8f
Fix condition in non reply-application
2013-12-22 20:03:41 +01:00
Florent
a3e6e98b4e
Move condition code in BaseApplication
...
The count parameter is now consistent with condition parameter
close #1289
2013-12-15 16:47:42 +01:00
Laurent Bachelier
2406b26b02
Hide FormFieldConversionWarning too
2013-08-09 00:25:51 +02:00
Romain Bignon
46d9acd37e
display a message when more results are available ( closes #1038 )
2013-07-27 23:40:24 +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
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
b7b7d31771
remove unused imports
2013-01-30 11:36:47 +01:00
Romain Bignon
8550c17cf7
do not cry if an object in not support to be filled by a backend
2013-01-30 11:34:28 +01:00
Laurent Bachelier
d9ceecdf8a
Add --insecure to the proper place (no group)
2013-01-25 15:48:55 +01:00
Florent
528cc826ce
Allow to exclude some backends
...
closes #617
2013-01-10 19:05:52 +01:00
Laurent Bachelier
8bc80db331
Add global "insecure" option to skip SSL validation
...
closes #930
2013-01-10 09:38:17 +01:00
Laurent Bachelier
2d463e060e
Hide ConversionWarning by default
...
refs #839
2012-04-10 08:01:27 +02:00
Romain Bignon
fc849995f4
rewrite of the formatters system
2012-04-03 22:40:38 +02:00
Romain Bignon
9162f1c09e
convert arguments to unicode even if no locales are set
2012-02-17 14:43:09 +01:00
Romain Bignon
5bd0aeed41
setup a default logging handler at app startup, before parsing args (-vdq)
2012-01-27 17:34:08 +01:00
Romain Bignon
14a7a1d362
support repositories to manage backends ( closes #747 )
2012-01-17 17:00:05 +01:00
Romain Bignon
5337e53b49
split BaseBrowser into new class StandardBrowser which is usable without inheriting it
2011-09-23 09:59:12 +02:00
Romain Bignon
2804867a97
print an error if a specified backend is not enabled or existant
2011-06-30 15:24:51 +02:00