Florent
628c63f899
Remove backend for do() calls
2014-10-10 14:11:45 +02:00
Romain Bignon
d5a43991b6
when getting an object, if at least one is found, display errors but correctly return the found object
2014-09-18 12:51:28 +02:00
Laurent Bachelier
19a95dc0d6
Centralize encoding guesses, default to UTF-8
...
This might not be enough for print() and could need a locale.setlocale()
even though it is generally discouraged.
closes #1352
2014-09-04 12:41:25 +02:00
Romain Bignon
f834f63b02
Use fullid parameter and not a local formatting
2014-09-03 16:15:28 +02:00
Florent
030197c738
Remove the 'inspect' command
2014-09-03 15:02:38 +02:00
Florent
fe02de196b
Remove the webkit_mechanize_browser import
2014-09-03 14:59:54 +02:00
Florent
c8e568fdd0
Use shortcut of id in interactive mode. Closes #881
2014-09-02 15:41:18 +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
Bezleputh
2e5aa369e0
[repl] in do_ls goes fully back when there is a / in path
2014-07-05 14:24:53 +02:00
Bezleputh
7b5ab26d0f
[repl] move format_collection from repl to ifromatter
2014-06-23 09:28:26 +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
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
7244665495
Set fields in a consistant way with do()
2014-06-18 15:20:46 +02:00
Florent
b0349f0e8c
Try to guess if we need to change the formatter
2014-06-17 15:43:04 +02:00
Bezleputh
b75d6dafcf
[repl] change formatter when it cannot handle all selected fields
2014-06-16 21:43:35 +02:00
Bezleputh
c20e6123fc
[repl] allow to browse subfolders with ls
2014-06-01 13:39:25 +02:00
Romain Bignon
6fcac89dd5
first step in python3 support
2014-05-17 14:27:55 +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
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
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
Bezleputh
c6a9abcc7e
[repl] Optimization: do not fetch the collections when not needed
2014-02-06 11:30:15 +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
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
0b39d2d873
Coding style
2014-01-06 15:17:21 +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
Florent
105ec527b5
Sort results of ls by default
...
and replace option -s by option -U (same than the real ls command)
refs #1079
2013-12-17 15:21:25 +01:00
Florent
920e8edc44
Add documentation on conditions
2013-12-16 16:40:14 +01:00
Florent
af5452091b
Add -s option to ls (sort by backend/id)
...
closes #1079
2013-12-16 14:31:23 +01:00
Florent
3983590d76
Remove condition in format function
...
Forgot to clean it in a3e6e98b4e
2013-12-16 14:00:03 +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
Florent
8b2ced6dc5
Do not return None objects on get_object
...
Fix the "bug" of passing urls to videoob with
multiple backends.
2013-11-07 09:15:58 +01:00
Florent
c712da56a3
Catch errors in boobill (cmds without args)
...
Closes #1303
2013-10-28 18:25:52 +01:00
Florent
9fee613cba
Call self.weboob.do in ReplApplication.get_object_list
2013-10-28 17:00:02 +01:00
Florent
9a0f9d0fc9
Remove condition from core
2013-08-06 19:05:21 +02:00
Florent
29567cffa4
Enable infinite search by default is condition is set
2013-08-06 18:54:49 +02:00
Florent
6b0930ffc5
Move condition from BCall to Repl
2013-08-06 18:45:03 +02:00