Commit graph

74 commits

Author SHA1 Message Date
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
Laurent Bachelier
6161a0aacd pep8 fixes, modernizations
autopep8 -a -r -i --select E711,E712,W601,W602,W603,W604,W690,E304,E401,E502 .
Also includes some manual reindentations (many are left after the print()
changes).
Manually checked, some modernizations not commited here.
2014-10-10 23:41:43 +02:00
Florent
628c63f899 Remove backend for do() calls 2014-10-10 14:11:45 +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
c07e23cafc Use class attributes as much as possible for application output
refs #803
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
Romain Bignon
d2b9a0a2d2 move obj_to_filename() into ReplApplication and use it in weboorrents 2014-01-16 23:56:42 +01:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Laurent Bachelier
23a71d847b Code style fixes, mostly whitespace 2013-08-04 20:00:19 +02:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +02:00
Romain Bignon
663278e7b0 colorize 'seeders' and 'leechers' 2013-08-02 13:32:13 +02:00
Florent
3a5a414e63 Catch empty seeders and leechers 2013-08-02 12:59:12 +02:00
Romain Bignon
bdf4c13f4e remove useless calls to ReplApplication.flush() (closes #812) 2013-07-27 19:00:58 +02:00
Romain Bignon
9094294683 default behavior is to unlimit results, except for explicit commands (searches or history)
closes #1139
2013-07-27 15:56:45 +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
Julien Veyssier
fe5499c8ac [isohunt] small corrections 2013-03-13 01:16:41 +01:00
Julien Veyssier
e8a788cb00 [weboorrents] cleaning get_object 2013-03-13 01:16:41 +01:00
Julien Veyssier
aab3ea5741 [kickass] fill_torrent
[weboorrents] temporary modification to fully load torrent on 'info short_id'
2013-03-13 01:16:41 +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
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
Romain Bignon
2f8072e89e bump to 0.d 2012-05-04 21:17:46 +02:00
Romain Bignon
fc849995f4 rewrite of the formatters system 2012-04-03 22:40:38 +02:00
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +01:00
Laurent Bachelier
b4b7182960 Make Collection more safe and sane
* Remove callbacks in Collection object
  Make Collection a "dumb" object (and also a base object,
  though it isn't very useful for now)
* Rename Path to WorkingPath, because it is more about managing state
  than being a single path.
* Rewrite almost all WorkingPath, because the code was overly
  complicated for no reason (I tried some special cases and it turned
  out that fromstring didn't handle them, and that the
  quote-escape-unquote was just unecessary). I also rewrote it to be
  more pythonic (no more lambdas and maps) and added tests.
* Require the full split path when creating a Collection. Because, come to
  think of it, an object needs an unique identifier; in the case of
  Collections, it is the full path, not only its last part.
  I might even replace the id by the full split path in the future.
* There is now only one way to get items of a Collection: calling
  iter_resources().
* Rewrite flatten_resources to iter_resources_flat(), which just calls
  iter_resources() recursively.
* Rewrite the collection part of the canalplus module. There is no more
  callback or a page calling the browser to check another page!
  The logic is only in iter_resources().
  The resulting code is not very pretty, but it should get better.
  As a bonus, avoid to reload the main XML file when we already have it
  open.
* change_path() now expects a split path and not a string.
* up/home special cases for "cd" are handled in the same place, and
  store the previous place properly (but are not yet exploitable by
  an user command).

This is a big commit but it would be hard to split it in *working*
commits.

If you read this entire commit message, I will buy you a beer.

refs #774
fixes #773
2012-03-13 22:08:45 +01:00
Laurent Bachelier
ee04a92f04 Support magnet URLs in weboorents 2012-03-09 02:49:00 +01:00
Laurent Bachelier
f8843084f0 Display magnet URLs when present 2012-03-09 02:14:54 +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
c74216ccf8 FILENAME argument is optional for command 'getfile' (closes #683) 2011-07-05 16:27:06 +02:00
Romain Bignon
53e22d9f4b bump to 0.9 2011-05-08 18:31:44 +02:00
Romain Bignon
6243a60f68 check if there are files before display them 2011-05-08 11:38:15 +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
c28d5a99c1 factorize ls and cd in ReplApplication 2011-04-21 11:01:50 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Christophe Benz
c7ff4640a0 Fix application descriptions. 2011-04-04 10:35:41 +02:00
Romain Bignon
31a0a0a8be bump to 0.8 2011-04-04 10:30:09 +02:00
Romain Bignon
bafbf3644a use IFormatter.(BOLD|NC) on every formatters 2011-03-09 09:26:55 +01:00
Romain Bignon
3cb6ca033f bump to 0.7 2011-03-01 13:57:23 +01:00
Romain Bignon
81f9980623 update copyrights 2011-01-14 23:03:52 +01:00
Romain Bignon
2ebb9a844d bump to 0.6 2011-01-08 12:30:28 +01:00
Christophe Benz
e9ede31053 fix parse_args conflict 2010-12-13 16:18:23 +01:00
Christophe Benz
5bdd1540fe s/parseargs/parse_args 2010-12-13 15:42:20 +01:00
Romain Bignon
78bfa70f23 set a description for every application 2010-12-09 12:03:38 +01:00
Romain Bignon
a83a81dde8 bump to 0.5 2010-12-01 19:55:59 +01:00