Romain Bignon
19ae5d6312
add linesep to output content if file is not sys.stdout ( closes #1383 )
2014-05-17 15:55:03 +02:00
Romain Bignon
15a58d5647
import browser exceptions from weboob.tools.exceptions
2014-05-17 14:56:07 +02:00
Romain Bignon
6fcac89dd5
first step in python3 support
2014-05-17 14:27:55 +02:00
Romain Bignon
7c1e08eb96
move browser exceptions into weboob.tools.exceptions
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
236b9087a2
Set comp_object as class method
2014-05-07 23:22:28 +02:00
Bezleputh
7b799a6fbb
gather collections having the same path
2014-05-07 18:24:48 +02:00
Florent
fa845abb69
Documentation of the -d option
2014-05-07 10:21:17 +02:00
Florent
a87ef4072d
Use a fast path for ls if -U is set
...
The ls command first store all objects and collections, and then run the
formatting. It is bad for applications displaying results as soon as
possible, but mandatory to store results and display the collections
first.
Since the -U option was introduced to not sort the results, we can
expand this idea to not display the collections first, and to display
results immediately.
2014-05-07 10:15:07 +02:00
Florent
b6e44e8d22
Remove the "is CapBaseObject" condition
...
A module has to always return a CapBaseObject, this condition is not
usefull
2014-05-07 09:35:05 +02:00
Laurent Bachelier
132d131f87
Add a json formatter that works on a line level
2014-05-07 00:02:08 +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
Vincent Texier
7a72b94b37
Fix bug dailymotion not playing video with "Server returned 403: Forbidden"
...
Dailymotion video url send cookies then use a 302 redirect to the real video url
The real video url check the cookies sent in the request.
Some mediaplayer (mplayer) can not handle this.
So we use pure python urllib2 to handle this and load the video.
The video bytes are piped to the mediaplayer.
Others modules might need this.
They just have to set the "_play_proxy" boolean attribute to the video object.
Signed-off-by: Vincent Texier <vit@free.fr>
2014-04-21 09:33:31 +02:00
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
79566fbbf3
soometimes, a backend method can return None
2014-04-14 20:45:44 +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
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
8955815805
better display to prompt user passwords
2014-02-24 14:55:06 +01:00
Romain Bignon
44da8924bf
use name of module, not of backend
2014-02-09 19:09:39 +01:00
Florent
562062ac85
Display backend@issues.weboob.org and not backend.EMAIL
2014-02-09 14:32:31 +01:00
Bezleputh
c6a9abcc7e
[repl] Optimization: do not fetch the collections when not needed
2014-02-06 11:30:15 +01:00
Vincent Paredes
56310adcad
fixing password encoding issue
...
Signed-off-by: Romain Bignon <romain@budget-insight.com>
2014-02-05 18:22:48 +01:00
Romain Bignon
829ecf8305
fix: masked parameter wasn't considered
2014-01-31 17:13:58 +01:00
Romain Bignon
536bc13347
catch ^C on global bcall errors handler
2014-01-31 17:13:58 +01:00
Romain Bignon
43022f434a
cleaned fix
2014-01-26 15:32:37 +01:00
Romain Bignon
478e85a2d8
better detection of editor used
2014-01-26 14:59:00 +01:00
Romain Bignon
b36daee5b1
prompt (beautifully) user during configuration of a backend
2014-01-24 00:39:43 +01:00
Romain Bignon
2b0d4e8b91
create/edit tickets in a text editor
2014-01-22 00:00:43 +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
Romain Bignon
d2b9a0a2d2
move obj_to_filename() into ReplApplication and use it in weboorrents
2014-01-16 23:56:42 +01:00
Pierre Mazière
7c5e21038b
fix #1325 : exclude backends that do not implement the required method
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2014-01-13 19:25:47 +01:00
Laurent Bachelier
a3306cc222
Add mpv to default players
...
It's another fork of mplayer, more active than mplayer2.
2014-01-08 08:06:18 +01:00
Florent
a5a4c2e44a
Accept 0 and negative value for count
...
We already accept zero and negative value with the option -n, for
consistency it is good to accept it in interactive mode.
2014-01-07 18:59:19 +01:00
Florent
52111043e3
Revert part of e15b2a8473
2014-01-07 12:57:36 +01:00
Florent
9223d92fc8
restrict ls to 40 results by default
2014-01-06 17:13:16 +01:00
Florent
92dfab4069
More text in error
2014-01-06 15:26:09 +01:00
Florent
0b39d2d873
Coding style
2014-01-06 15:17:21 +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
3bb4b50ba0
Fix bug introduced in ReplApplication.get_object refactoring
...
Ref e15b2a8473
e0417f702d
0668db2b5a
2014-01-06 14:58:29 +01:00
Pierre Mazière
0668db2b5a
ReplApplication.get_object(): fix backend lookup
...
because self.enabled_backends contains BaseBackend objects
and not backend name strings
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2014-01-05 22:46:05 +01:00
Pierre Mazière
e0417f702d
ReplApplication.get_object(): exclude backends which does not implement 'method'
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2014-01-05 22:46:04 +01:00
Pierre Mazière
e15b2a8473
ReplApplication.get_object(): return None if method does not exist
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2014-01-05 22:46:04 +01:00
Romain Bignon
818b756e27
json formatter: all subobjects are also encoded
2013-12-22 22:12:03 +01:00
Vincent Texier
148f6f3a2b
Fixed thumbnail field returning always "id" with json formatter
...
Version development 0.h
2013-12-22 22:02:17 +01:00
Florent
3fa2a8ba8f
Fix condition in non reply-application
2013-12-22 20:03:41 +01:00