Florent
ffe1c43300
Fix a03f2b627e "selecting a field in non-interactive mode"
...
Writing code without coffee introduces a lot of bugs.
2014-04-18 10:44:23 +02:00
Florent
a03f2b627e
Fix selecting a field in non-interactive mode
...
The command:
boobank ing history blabla@ing -f table -s label,amount,date
was bugued, since b770163d9b .
Before to iter the history, boobank uses the get_object method, with fields set to []. The goal is to not use the selected_fields configured by the user.
But the commit b770163d9b added:
"or self.selected_fields"
Since "if []" return false, it cannot works.
2014-04-18 10:24:47 +02:00
Romain bignon
b268fc043b
Use regexp to validate urls
2014-04-18 09:55:31 +02:00
Romain Bignon
d291019ce9
fix TableElement to be really case insensitive
2014-04-15 09:15:12 +02:00
Romain Bignon
79566fbbf3
soometimes, a backend method can return None
2014-04-14 20:45:44 +02:00
Romain Bignon
55c80097fe
add BaseBrowser.prepare_request virtual method
2014-04-14 16:42:39 +02:00
Vincent Paredes
4ac38b89cf
fixing DateGuessing filter
2014-04-14 16:42:39 +02:00
Vincent Paredes
f7c4bb39c5
remove case sensitive checking
2014-04-14 16:42:39 +02:00
Romain Bignon
1bef60b347
URL builds absolute urls from BASEURL
2014-04-13 12:32:02 +02:00
Romain Bignon
07f6507096
improve documentation of browser2
2014-04-12 15:02:34 +02:00
Romain Bignon
5f59c130b3
add decorator pagination
2014-04-12 12:48:14 +02:00
Bezleputh
5158aabe98
[browser2] add a textCleaner parameter to Join
2014-04-10 10:09:30 +02:00
Florent
7555938470
Test the id and the fullid in condition
...
And use obj.to_dict instead of dict(obj.iter_fields())
2014-04-09 10:30:19 +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
690010a8d2
add DateGuesser filter
2014-04-07 07:43:22 +02:00
Bezleputh
0ed7ed2b2d
[browser2] add an XMLPage
2014-04-03 16:34:36 +02:00
Florent
b03881de24
Return Unicode string in Attr
2014-04-03 15:24:46 +02:00
Florent
d85675918a
Add childs option to CleanText
2014-04-03 11:22:40 +02:00
Florent
8242dbecd1
One more use of find_object
2014-04-02 12:37:31 +02:00
Florent
839834edf2
Add name attribut to Form object
2014-04-01 12:33:27 +02:00
Florent
6138209a2f
Add replace option to CleanText
2014-04-01 10:46:08 +02:00
Romain Bignon
dd68bfd3fc
fix use of checked checkbox/radiobuttons in forms
2014-03-29 20:00:14 +01:00
Florent
d768de6638
Add RawPage to Browser2
2014-03-28 13:24:26 +01:00
Florent
7dee2218ff
Add dayfirst option to Date and DateTime
2014-03-28 11:31:44 +01:00
Florent
ba2f66183c
Introduce Lower Filter
2014-03-28 11:31:41 +01:00
Florent
c3b34886db
Fix call of Date
2014-03-28 11:31:38 +01:00
Laurent Bachelier
c4b40e85e9
Limit debug filename to a sane number of characters
2014-03-27 23:41:31 +01:00
Bezleputh
c699dbe4cc
[browser2] Rename Combine filter to CombineDate
2014-03-27 10:01:13 +01:00
Bezleputh
66f3560b52
[browser2] add a CleanHTML filter
2014-03-27 00:16:11 +01:00
Bezleputh
f04c5a4ae9
[browser2] add a combine filter
2014-03-27 00:15:31 +01:00
Romain Bignon
a84d5f947c
add a possible label title
2014-03-26 11:10:09 +01:00
Romain Bignon
9770b2af1c
fix compatibility with requests < 2.2
2014-03-26 09:58:27 +01:00
Romain Bignon
273f0e683e
logger can be unset at this step
2014-03-26 09:44:13 +01:00
Romain Bignon
0048365bcc
do CleanText forwards kwargs to allow children classes to have a default parameter
2014-03-26 09:40:22 +01: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
Romain Bignon
698ed5fb06
add exceptions, add _Filter.default_or_raise, and other fixes
2014-03-25 22:28:09 +01:00
Florent
77f2213229
Return default value if html node is not found
2014-03-25 13:24:24 +01:00
Florent
e289fc6b8f
Rename the filter Date to Datetime. Introduce Date
2014-03-25 12:23:08 +01:00
Bezleputh
9eacdb0347
[browser2] fix bug in is_here when self.klass is None
2014-03-24 19:15:57 +01:00
Florent
f3d699f14a
Call CleanText.clean
2014-03-23 13:56:47 +01:00
Florent
2f303823c4
Format should not inherit of CleanText
2014-03-22 20:23:47 +01:00
Bezleputh
d8887cf3d7
[browser2] add a join filter
2014-03-22 20:16:52 +01:00
Romain Bignon
e21e60a49b
import exported LoggedPage
2014-03-22 16:06:51 +01:00
Romain Bignon
f6b5996652
fix count of forms
2014-03-22 16:06:51 +01:00
Romain Bignon
3bf7ef62c8
fix wrong behavior with cookies handle
2014-03-22 16:06:51 +01:00
Florent
41e2cab536
Add documentation
2014-03-22 14:59:01 +01:00
Laurent Bachelier
0927230e95
Also check arguments with is_here()
...
Otherwise, something like that would never work:
page.stay_or_go(id=1)
page.stay_or_go(id=2) # would stay on URL for id=1
To avoid breaking simple usage of is_here(), if no arguments are
provided, then there are no checks.
That means:
page.stay_or_go(id=1)
page.stay_or_go() # nothing happens
2014-03-22 12:43:53 +01:00
Laurent Bachelier
463fdb2016
Fix passing the URL with id2url, when provided with an URL
...
It was passing the match result instead.
2014-03-22 12:43:53 +01:00
Laurent Bachelier
27aa772ef5
Escape the base URL before adding it to the regexp
2014-03-22 12:43:53 +01:00
Laurent Bachelier
afb3bc412f
Remove unused/obsolete parsers
...
lxmlsoup is currently used by one module.
2014-03-22 01:03:38 +01:00