Commit graph

3,531 commits

Author SHA1 Message Date
Romain Bignon
7891ce6118 fix crash if dump_state() occurs without a current page 2015-03-25 01:21:28 +01:00
Romain Bignon
6709974d35 shutdown the session async executor to cleanup useless threads 2015-03-24 23:59:39 +01:00
Romain Bignon
195b61fb57 give max_retries to FuturesSession in case it may build HTTPAdaptors 2015-03-24 23:59:05 +01:00
Romain Bignon
a9b86d60a5 if AsyncLoad parameter is None, do not try to open it, and Async returns None
This fixes a bug with LCL for transactions without details
2015-03-24 23:57:21 +01:00
Romain Bignon
e6a80af479 call browser.deinit() if defined 2015-03-24 23:57:05 +01:00
Florent
47fe42135c Browser: move load/dump_state to LoginBrowser
It does not make sens to store a cookie for a non-logged browser.
2015-03-20 22:23:09 +01:00
Florent
b3aabdeeaf Be consistent in enable state: use human readable values 2015-03-17 22:16:15 +01:00
Florent
9208b7bb31 Add 'on' and 'yes' to enabled values
Be consistent with ouiboube core
2015-03-17 22:08:50 +01:00
Bezleputh
bc1746214c [browser] catch HTTPErrors during load_state 2015-03-13 17:45:53 +01:00
Bezleputh
11a63c33ce [filter] improve Join filter
The filter will now act a little bit more like the join command
I also added some parameters that will help formatting (newLine, addBedore, addAfter)
2015-03-13 00:05:36 +01:00
Bezleputh
a3d351eb88 [base] create enum in base and use it in calendar and housing 2015-03-13 00:05:35 +01:00
Bezleputh
a39dff77a5 [Element] create new element : DictElement
use new DictElement in modules
2015-03-13 00:05:35 +01:00
Romain Bignon
be122f0fa6 add 'replace' xpath function 2015-03-12 15:22:42 +01:00
Romain Bignon
569ff245a3 catch csv exceptions 2015-03-09 10:44:23 +01:00
Romain Bignon
2afd27b4a4 use StateBrowser, s/BrowserToBeContinued/BrowserQuestion/ and coding style fixes 2015-03-08 16:31:36 +01:00
Romain Bignon
248830752d add (deprecated) StateBrowser which saves cookies into storage 2015-03-08 14:21:23 +01:00
Baptiste Delpey
3a05b29bc3 add BrowserToBeContinued exception and handle it 2015-03-08 14:21:23 +01:00
Kitof
8ae6ad68aa [shopoob] Improvements + pep8 fixes 2015-03-04 13:37:22 +01:00
Laurent Bachelier
dd1173e2f2 filters: JSON Dict improvements
- Allow the selector to already be a list
- Allow having None as a valid value (JSON "null")
- Handle lists in addition to dicts
- Try to guess whether the selector element is intented to be an int or a str
  based on the structure available (list means int)
2015-03-02 15:48:38 +01:00
Laurent Bachelier
7d5835d84f browser: Fix crash when using HEAD on a page-matching URL
HEAD responses have no content, so it doesn't make sense to build
Pages out of them.
2015-03-02 15:48:38 +01:00
Laurent Bachelier
677cc18524 browser: Add an absurl method to Page 2015-03-02 15:48:37 +01:00
Romain Bignon
396defc7f5 set default value of Contact.profile to OrderedDict() 2015-02-28 15:55:33 +01:00
Romain Bignon
14a11abb40 fix crash with previous commit and unhandled urls 2015-02-25 17:51:36 +01:00
Romain Bignon
7df61bc6cb add BaseBrowser.get_page method (from _change_location) to get Page object from a result buffer without changing location 2015-02-25 17:40:01 +01:00
Romain Bignon
6a108221db add HTMLPage.REFRESH_MAX parameter (disabled by default) to configure handle of refreshes 2015-02-25 11:35:45 +01:00
smurail
fa7910cff4 add an Eval filter to eg. use arithmetic expressions 2015-02-24 18:58:36 +01:00
Baptiste Delpey
b0943a943b fix investment display when some fields are empty 2015-02-23 18:59:57 +01:00
Kitof
f73f671cbe Fix permissions, encoding and copyrights 2015-02-21 23:37:41 +01:00
Kitof
965e5a1b1d Add shopoob application and new property in shop capability 2015-02-21 23:35:20 +01:00
Julien Veyssier
00112b3e51 add a link to OSM map as a CapGeolocIp field and make the application fill it 2015-02-21 17:51:17 +01:00
Romain Bignon
0445c92a77 handle "Refresh"" meta tag 2015-02-21 17:49:21 +01:00
Romain Bignon
cedfb5670e save and load state of browser into storage 2015-02-21 17:49:20 +01:00
Bezleputh
0bc87a29c3 [boobcoming] add a load command 2015-02-19 00:05:38 +01:00
Romain Bignon
baab7311b8 add country of transaction 2015-02-13 16:30:39 +01:00
Romain Bignon
0dce591756 add new bank fields 2015-02-10 08:08:22 +01:00
Matthieu Weber
63eed107e3 capabilities.weather: cosmetic change 2015-02-08 20:08:22 +01:00
Matthieu Weber
3e5856d02a capabilities.weather.Current: fix default value for date
Signed-off-by: Matthieu Weber <mweber+weboob@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2015-02-08 20:06:11 +01:00
Oleg Plakhotniuk
0430d7e30f Credit limit, payment due date and amount for credit card bank accounts. Closes #1717 2015-02-08 15:33:27 +01:00
Bezleputh
2a5a1c3fcd [Date] Add a twitter translation for february 2015-02-06 08:54:40 +01:00
Alexandre Morignot
7fc06dd16c [filter] correct '_regexp' attribut name in Duration 2015-02-06 08:53:29 +01:00
Romain Bignon
2f61835521 introduce new type Account.TYPE_LIKE_INSURANCE 2015-02-05 18:35:06 +01:00
Romain Bignon
e2ad595413 add LoginBrowser.do_logout() method (which, by default, removes cookies) 2015-02-04 15:04:23 +01:00
Bezleputh
8250846448 fix #1706 marmiton and 750g are now working using browser2 2015-01-31 16:53:04 +01:00
Romain Bignon
d2d348fe9e remove _Message and _Thread and use strings in Field instead 2015-01-31 15:36:57 +01:00
Pierre Mazière
178c7cd406 add the possibility to define Field type argument as a string
instead of:
class A:
    x = Field("This must be an instance of class B",B)

we could write:
class A:
    x = Field("This must be an instance of class B","B")

The use case is when B is a child of A and thus cannot be used
before its definition

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2015-01-31 15:34:38 +01:00
Jean-Philippe Dutreve
e5e745d2da Extend the delay to 31 days (instead of 7) for date_max_bump of several DateGuesser.
Signed-off-by: Jean-Philippe Dutreve <jdutreve@winancial.com>
2015-01-26 08:23:07 +01:00
Romain Bignon
e442342bf9 do not tell user about disabling of urllib3 warnings 2015-01-24 12:03:43 +01:00
Romain Bignon
130cec8c5a add Slugify filter 2015-01-21 14:16:58 +01:00
Romain Bignon
de97d45c74 clean cached objects before getting new ones 2015-01-18 13:38:26 +01:00
Romain Bignon
47232308a9 prompt user to accept an untrusted keyring (closes #771) 2015-01-16 12:21:51 +01:00