Florent
d6da9843db
Set copyright in applications
2014-10-17 17:57:42 +02:00
Florent
feb1405813
bump to 1.1
2014-10-17 14:10:38 +02:00
Romain Bignon
5bd70c564f
os.isatty is now forbidden (as stream.fileno() is not implemented by StringIO)
...
Use stream.isatty() instead.
2014-10-07 09:39:12 +02:00
Laurent Bachelier
74a4ef6723
Use the print function everywhere
...
python modernize.py --no-six -f libmodernize.fixes.fix_print -w
With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00
Laurent Bachelier
ee8e7cee3d
pastoob: Add an option to set a custom file encoding
2014-09-04 12:41:25 +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
Florent
432f97e95c
bump to 1.0
2014-09-03 17:14:10 +02:00
Romain Bignon
e025fb0b20
rename ICap to Cap ( closes #1424 )
2014-07-05 17:33:44 +02:00
Florent
9ca0bbae6a
bump to 0.j
2014-05-19 22:45:35 +02:00
Laurent Bachelier
45ba413a4b
pastoob: Add "info" command
2014-05-19 00:25:59 +02:00
Vincent A
910aa6eea1
pastoob: paste binary files with "post_bin FILENAME" and "get_bin ID"
2014-02-19 22:14:23 +01:00
Florent
a82f57512c
bump to 0.i
2014-01-08 23:40:16 +01:00
Laurent Bachelier
bd110e2e90
pastoob: Add help for "infinite" max_age
2013-08-09 00:25:51 +02:00
Florent
9b022b2ebe
bump to 0.h
2013-08-03 14:31:13 +02:00
Laurent Bachelier
a6ad7e83ff
Use newer form of catching exceptions
...
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +02:00
Romain Bignon
c0740e695d
remove useless import of with_statement (we do not support anymore python2.5)
...
refs #806
2013-07-27 14:38:18 +02:00
Florent
9484099a1d
bump to 0.g
2013-03-26 18:31:12 +01:00
Laurent Bachelier
ae06ae3384
Add missing "whatis entry" to man pages
...
This is recommended by Debian.
closes #618
2013-02-13 00:38:33 +01:00
Laurent Bachelier
41c25f4611
pastoob: Support "no expiration"
2013-01-25 17:52:09 +01:00
Laurent Bachelier
cf5b6a95f5
Add command-line parameters to pastoob
...
And better defaults.
closes #920
2013-01-25 17:52:09 +01:00
Florent
bf3132e8c0
bump to 0.f
2013-01-25 17:23:49 +01:00
Romain Bignon
4a1e4b5afa
bump to 0.e
2012-10-28 20:39:49 +01:00
Laurent Bachelier
770c0877a0
pastoob: Abort if paste is empty
2012-10-21 17:49:32 +02:00
Romain Bignon
2f8072e89e
bump to 0.d
2012-05-04 21:17:46 +02:00
Romain Bignon
8e391d0b88
bump to 0.c
2012-03-14 22:09:24 +01:00
Romain Bignon
4be4b40509
bump to 0.b
2012-02-05 19:35:30 +01:00
Romain Bignon
eb3f681136
bump to 0.a
2011-10-10 11:38:02 +02:00
Romain Bignon
e731f42cb9
new method ConsoleApplication.acquire_input() to read stdin friendly
2011-07-11 22:18:25 +02:00
Laurent Bachelier
0a73b9e963
pastoob: Don't crash if sys.stdout.encoding is None
2011-05-31 15:59:12 +02:00
Romain Bignon
53e22d9f4b
bump to 0.9
2011-05-08 18:31:44 +02:00
Laurent Bachelier
2977c879e7
Oops, this should never have been committed
2011-05-05 00:35:24 +02:00
Laurent Bachelier
0d2148bd84
CapPaste: check the contents in can_post
...
For pastealacon, it is used to check for encoding compatibility.
2011-05-04 23:50:58 +02:00
Laurent Bachelier
8075d538f0
Better messages and return codes in applications
...
Use stderr and return codes >0 when it makes sense.
Loose return code conventions:
* 1 for generic errors
* 2 for user input errors
* 3 for remote errors (not found, etc.)
* 4 for not implemented
2011-05-04 00:44:43 +02:00
Romain Bignon
642f2b7328
fix error message when file is not found
2011-05-03 15:57:23 +02:00
Laurent Bachelier
fbae8c1e53
pastoob: Fix input/output encoding issues
2011-05-03 14:30:40 +02:00
Romain Bignon
9ca4a2530c
filename is not a required argument
2011-05-03 12:08:10 +02:00
Laurent Bachelier
aa939ca2bd
Support testing with multiple backend instances
...
This is useful for testing backends with different configurations
(different sites, being anonymous or not, etc.)
The previous behavior was to chose a random backend instance.
2011-05-02 02:05:14 +02:00
Laurent Bachelier
f63180c187
CapPaste: Support expiration for posting, as a max_age parameter
2011-04-30 00:26:23 +02:00
Laurent Bachelier
fbd4511ffa
CapPaste: add method to find if a paste is suitable for the backend
...
Basic support in pastoob added (there is no way yet to change the
default options).
Backends support the "public/private" requirement.
2011-04-27 00:41:50 +02:00
Laurent Bachelier
4b2b9e511f
pastoob: add a newline for get
...
Unless we are writing in a file or in a pipe
2011-04-26 18:55:42 +02:00
Laurent Bachelier
61c1aef493
pastoob: Fix displayed help for post
2011-04-26 18:55:42 +02:00
Laurent Bachelier
30f2f8e374
Python 2.5 compatibility for pastoob and paste backends
2011-04-24 00:18:05 +02:00
Laurent Bachelier
8af2674994
Better API for ICapPaste.new_paste
2011-04-23 00:30:27 +02:00
Laurent Bachelier
6c2d164883
Add basic support for pasting with pastoob
...
And fix the capability.
2011-04-23 00:17:40 +02:00
Laurent Bachelier
5c7eaa3151
Pastoob fixes
...
Do not use print (as it add a newline), fix the wanted fields, use "get"
instead of "show".
2011-04-22 22:06:14 +02:00
Laurent Bachelier
d3f6c270f8
Introduce the pastoop application
...
For now it can only get the contents of a paste.
2011-04-21 23:11:00 +02:00