Commit graph

3,222 commits

Author SHA1 Message Date
Romain Bignon
0f1ce1d4b1 add tab to send queries 2014-07-19 15:42:19 +02:00
Romain Bignon
1005197a92 add CsvPage 2014-07-11 15:24:24 +02:00
Romain Bignon
c90b5844e4 split filters into several files 2014-07-11 15:24:19 +02:00
Laurent Bachelier
d9e04292c4 Only load FirefoxCookies as needed
Which is probably never; the feature is unused as far as I know.
2014-07-10 10:15:38 +02:00
smurail
8cb44a45a7 possibility to set custom separators for decimals 2014-07-09 19:02:23 +02:00
smurail
a6972d3958 add LBP to currencies 2014-07-09 19:02:23 +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
6759dec279 Add missing import 2014-07-09 14:58:49 +02:00
Florent
9ae7cc692f Fix a regression: restore ListItem version
And move it in the same place than before to help the diff...
2014-07-09 14:51:34 +02:00
Florent
1ea36ced3f s/BaseCapObject/BaseObject/ (error in documentation) 2014-07-09 13:00:22 +02:00
Florent
e5f11a15eb s/IBaseCap/CapBase/ (refs #1424) 2014-07-09 12:59:31 +02:00
Florent
20ffb6ca08 Revert part of "import module used only in debug mode"
Since the date are now not always imported, it does not make a lot of
sense to not import all date utils
2014-07-09 12:01:35 +02:00
Florent
537b49e6bd DateField/TimeField/Delta are not really a base object 2014-07-09 11:46:46 +02:00
Florent
e12485dc84 Introduce local exception for SSL errors
It removes the import of SSL in console applications (SSL -> socket ->
base64 -> ...)
2014-07-09 11:45:55 +02:00
Florent
b8453fb0a8 Do not import Date in results header
Actually, the condition are not widely used. Do not load the datetime
module if we don't run it.
2014-07-09 11:43:48 +02:00
Florent
1daa866949 Move the import oh html2text outside of misc 2014-07-09 11:43:14 +02:00
Florent
e67d92cb51 Well, we *never* do i18n 2014-07-09 11:23:15 +02:00
Florent
c122e6f9cc Do not import/export dates utils in misc 2014-07-09 11:20:56 +02:00
Florent
0e3e32adb1 Do not import exceptions of requests / load browser if needed
The import process of requests is very expensive: it imports all urllib,
and a lot of stuff. It is a problem on slow hardware, for applications
not running browser2 (example: weboob-config update).

This patch has two mains parts:
 * introduces load_browser to load a browser only if needed (a lot of repository
   processing does not need a browser)
 * Do not import exceptions of requests, but use Weboob internals one

Before: 6455 open/190 modules imported
After: 3997 open/112 modules
2014-07-09 10:54:33 +02:00
Florent
fb555c3079 Do not import lxml in headers of page.py 2014-07-09 10:23:24 +02:00
Florent
8a2a1ece5e Do not always import module used only in debug mode 2014-07-09 10:23:24 +02:00
Florent
76cb004eb4 Move ItemListTable-Element outside of page.py
One of the goal is to not import all modules needed by filters by
loading the page file.

In the same goal, move the import of parsers in the class definition.
2014-07-09 10:23:20 +02:00
Florent
f7cd0abc3b Remove import of browser1 in BaseApplication 2014-07-08 17:15:39 +02:00
Romain Bignon
983ed221e2 ability to use filters as classes in chain (refs #1426) 2014-07-05 20:22:45 +02:00
Romain Bignon
2268eb2ff1 ability to use Dict['a']['b']['c'] instead of Dict('a/b/c') (refs #1426) 2014-07-05 20:22:39 +02:00
Romain Bignon
8efd37e71d overload & and | operators to chain filters (refs #1426) 2014-07-05 20:00:04 +02:00
Romain Bignon
e025fb0b20 rename ICap to Cap (closes #1424) 2014-07-05 17:33:44 +02:00
Romain Bignon
51958135cb rename CapBaseObject to BaseObject (refs #1424) 2014-07-05 17:26:05 +02:00
Romain Bignon
4529735935 ability to use weboob.function as alias to weboob.do('function') (closes #1425) 2014-07-05 17:21:10 +02:00
Romain Bignon
ab7057b038 fix repr() and str() on File-based objects 2014-07-05 17:20:53 +02:00
Bezleputh
2e5aa369e0 [repl] in do_ls goes fully back when there is a / in path 2014-07-05 14:24:53 +02:00
Bezleputh
ac161104ea [filter] manage basestring entry in CleanHTML filter 2014-07-05 14:24:37 +02:00
Bezleputh
96271b6de4 [filters] manage default in Dict filter 2014-07-05 14:24:14 +02:00
Laurent Bachelier
73cd8762f5 Allow for a default argument in MultiFilter 2014-07-05 14:23:29 +02:00
Laurent Bachelier
3f2d8ae185 Allow for a custom element finder
And end up with less duplicate code!
2014-07-05 14:23:27 +02:00
Romain Bignon
18c1f46922 ability to override the flush() method 2014-07-01 20:37:58 +02:00
Vincent Paredes
714a0e7617 matching content with url using is_here 2014-07-01 15:52:51 +02:00
Bezleputh
ce60db2e57 [iformatter] move format_dict methods' content from PrettyFormatter to IFormatter 2014-06-27 09:00:07 +02:00
Bezleputh
feb0e378dc [thumbnail] remove data field in to_dict method to avoid json crash during convertion 2014-06-27 09:00:07 +02:00
Bezleputh
aeab3fac71 [json] handle format_collection 2014-06-23 09:29:32 +02:00
Bezleputh
7b5ab26d0f [repl] move format_collection from repl to ifromatter 2014-06-23 09:28:26 +02:00
Oleg Plakhotniuk
8875fad439 Table and Json formatters can write output to a file now.
Signed-off-by: Oleg Plakhotniuk <olegus8@gmail.com>

closes #1412
2014-06-22 19:08:28 +02:00
Laurent Bachelier
b9c6176628 browser2: Allow setting query string params on build_url
The outcome is exactly the same as using requests with the "params"
parameter.
2014-06-20 17:58:51 +02:00
Laurent Bachelier
5dd0e9e0ec Small style fixes 2014-06-20 17:58:51 +02:00
Tanguy Ortolo
c098ac32bc Correct multiple language error
"Information" is always singular in English.
The verb "allows" requires a direct complement ("to allow one to do
something", not "to allow to do something").
2014-06-20 17:39:19 +02:00
Bezleputh
347740c831 [Radioob] fix bug when a radio id contains a dot 2014-06-19 11:58:45 +02:00
Florent
c751b80bb6 Use fullid parameter and not a local formatting 2014-06-18 16:07:11 +02:00
Florent
8fee458824 Add some warnings 2014-06-18 15:45:18 +02:00
Florent
38a8fd00b7 Introduce parse_fields function 2014-06-18 15:45:11 +02:00
Florent
b105b8df19 Fix definition of DISPLAYED_FIELDS 2014-06-18 15:34:59 +02:00