Florent
bad531679a
Fix table formatter with 0.6 version
...
I didn't see a way to only align header...
2012-05-21 17:47:34 +02:00
Romain Bignon
f7214e5e62
ability to format dicts
2012-05-04 16:27:49 +02:00
Romain Bignon
101eabf17a
fix format of dicts
2012-04-07 23:15:06 +02:00
Romain Bignon
fc849995f4
rewrite of the formatters system
2012-04-03 22:40:38 +02:00
Laurent Bachelier
3b2bafdf12
Centralize "empty" comparisons
...
And always use "is" instead of "==".
2012-03-27 12:14:37 +02:00
Laurent Bachelier
006e97a8be
PEP8 style fixes and other small style fixes
...
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.
Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
change to a comment something that wasn't really appropriate for a
docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Romain Bignon
18dd9e2b8f
always flush formatter after calling a command
2011-08-12 09:56:30 +02:00
Romain Bignon
9afb301ebe
move select() in parser
2011-04-09 11:25:13 +02:00
Romain Bignon
7e2bb91b3b
change license to AGPLv3+
2011-04-08 12:48:07 +02:00
Laurent Dufréchou
86937aef95
Modifications to support boobank under win32
...
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-03-17 11:55:46 +01:00
Romain Bignon
99785b5a4d
open stty in a shell
2011-03-14 17:34:48 +01:00
Bluebird75
3f40fb2de7
- use an OS independant way of identifying base module directory - use a more portable way of reading stty output
2011-03-14 17:19:53 +01:00
Romain Bignon
bafbf3644a
use IFormatter.(BOLD|NC) on every formatters
2011-03-09 09:26:55 +01:00
juke
480e53cb00
no bold when -O
2011-03-09 09:26:02 +01:00
Romain Bignon
7bf2c007ff
fix missing import of with_statement
2011-02-28 10:51:05 +01:00
Juke
1382b50a7d
cleaner solution to output to a file
2011-02-25 18:49:23 +01:00
Christophe Benz
bc606d3640
add space to join for user message
2011-01-05 17:09:08 +01:00
Romain Bignon
1edaf7fd9f
fix return value of iter_city_search ( closes #457 )
2011-01-02 22:47:11 +01:00
Christophe Benz
3dd50f363d
remove unnecessary brackets
2010-12-08 18:10:42 +01:00
Christophe Benz
72659912ab
remove namespace packages info
2010-11-25 16:39:05 +01:00
Christophe Benz
560798bf7d
implement mandatory fields for custom formatters
2010-11-23 14:46:32 +01:00
Christophe Benz
5fc8c14b2d
fix #372 conditions should not be treated by formatters
2010-11-14 15:04:20 +01:00
Christophe Benz
cfb4bf4ab5
fix webkit formatter
2010-11-14 14:26:32 +01:00
Romain Bignon
6b25131bf5
check also if stdin is a tty to enable the pager
2010-11-11 13:23:42 +01:00
Romain Bignon
572d5c1061
fix things related to conditions
2010-11-01 10:37:07 +01:00
Romain Bignon
16b7b1d9be
do not display columns with only None values
2010-10-27 23:45:48 +02:00
Romain Bignon
d6e28f60a5
add CSV formatter ( closes #350 )
2010-10-27 08:24:16 +02:00
Romain Bignon
0b646e0e14
do not display columns when all values are NotLoaded or NotAvailable
2010-10-17 15:01:32 +02:00
Romain Bignon
2968b4f7b6
fix: class attributes are shared between instances, do not use them here
2010-10-16 19:00:03 +02:00
Romain Bignon
e114fb654f
correctly remove the '--Press a key to continue--' line
2010-10-16 15:02:46 +02:00
Romain Bignon
d2c70b7e98
in a tty, ask user to press <Enter> when text exceed the term height
2010-10-16 12:11:30 +02:00
Romain Bignon
24e3671f27
video_list formatter display count in interactive mode, the full ID otherwise
2010-10-15 10:12:44 +02:00
Romain Bignon
a86a6b2669
rewrite formatters management in repl
...
Commands can use specific default formatters, user can redefine formatters
per commands or globally.
2010-10-14 20:09:32 +02:00
Romain Bignon
d351cd13f0
fix boobank when coming is not available
2010-10-09 09:03:41 +02:00
Christophe Benz
b896f5f75c
use jquery chaining
2010-09-27 14:57:26 +02:00
Christophe Benz
d384a10810
reset queue before return
2010-09-27 14:57:26 +02:00
Christophe Benz
4f4897e0f2
add formatter command
2010-09-23 19:48:52 -04:00
Christophe Benz
9e2345eeb9
implement select command
2010-09-21 13:10:52 -04:00
Romain Bignon
64d5f75be2
multiline formatter do not display not loaded fields
2010-08-27 09:49:07 +02:00
Romain Bignon
404d7290ba
a lot of pyflakes and pylint fixes
2010-08-13 22:23:10 +02:00
Romain Bignon
3d97a99cee
pyflakes
2010-08-12 18:28:11 +02:00
Romain Bignon
3bf7975ad1
display a 'Total' line on command 'list'
2010-08-12 18:17:19 +02:00
Romain Bignon
e980e040ba
capabilities objets inherit from CapBaseObject (refs #369 )
2010-08-12 17:22:04 +02:00
Christophe Benz
6069d2b5b8
code clean
2010-08-12 16:04:53 +02:00
Christophe Benz
e20425952c
check condition before fields selection
2010-08-02 17:04:33 +02:00
Christophe Benz
cea76a076d
bugfix with args
2010-08-02 16:35:29 +02:00
Romain Bignon
07a9450d58
fix commit of cbenz: please, test you changes before pushing!
2010-07-20 20:52:01 +02:00
Christophe Benz
084d7ebd94
allow to specify order in --select option
2010-07-19 18:02:21 +02:00
Christophe Benz
13137111e4
enhance formatters
2010-07-12 03:16:05 +02:00
Christophe Benz
5547e14e11
enhance formatters
2010-07-11 22:00:18 +02:00