Commit graph

442 commits

Author SHA1 Message Date
Laurent Bachelier
e958c229e6 Move the "empty search for latest" to collections
There is now a "latest" collection (or "latest_nsfw").
The feature didn't look much used, since it didn't work on many
backends.
Using collections will make it easy to support other things
like most viewed, featured, etc.
As a bonus, I added tests for every backend with the feature.
2012-03-16 03:34:22 +01:00
Florent Fourcot
65251c4ceb Display renew confirmation/errors 2012-03-16 00:49:58 +01:00
Florent Fourcot
bdcc5db8bb Add "renew" in ICapBook and in boobooks 2012-03-16 00:49:54 +01:00
Florent Fourcot
34a71f9ef8 Fix error messages 2012-03-16 00:49:51 +01:00
Romain Bignon
8e391d0b88 bump to 0.c 2012-03-14 22:09:24 +01:00
Romain Bignon
df7325d712 get all fields of housings 2012-03-14 21:56:36 +01:00
Florent
34e95f8f7b Add format as file extension 2012-03-14 10:30:17 +01:00
Florent
99a2e554e8 Download bill on freemobile 2012-03-14 07:12:03 +01: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
9c4b8e3a59 add a formatter for subscriptions, and do 'ls' work 2012-03-13 22:43:42 +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
Florent
749162188d Add fonction to list bills to download 2012-03-13 22:01:12 +01:00
Florent
a8e01e7aee First implementation of boobill application
Only few functions are available
2012-03-13 22:01:10 +01:00
jems
24ab551694 add library capability and backend and application for archimede software aloes http://www.archimed.fr/aloes/presentation-et-avantages-12.html
Signed-off-by: jems <jems@ldjm.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2012-03-13 21:57:38 +01:00
Laurent Bachelier
062f2c4c3e Fix Python 2.5 support
And fix some PEP8 style issues (mostly about spaces) while I was there.

refs #806
2012-03-13 12:36:02 +01:00
Romain Bignon
56691d7ea7 rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
Romain Bignon
5019e07232 check all empty values possible 2012-03-12 13:44:51 +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
Laurent Bachelier
5a456c22ac Sign modules.list 2012-03-08 01:54:06 +01:00
Romain Bignon
33a9bf71a8 rename havesex and QHaveSex to havedate and QHaveDate 2012-03-03 22:59:17 +01:00
Romain Bignon
00c784e331 display 'category' in priority, 'type' otherwise 2012-02-28 13:54:26 +01:00
Romain Bignon
dcd25b22eb flush output (useful with table formatter) 2012-02-26 18:40:41 +01:00
Romain Bignon
234bdf6210 do not change sort of housings after display of a new one 2012-02-26 18:31:35 +01:00
Romain Bignon
d8b1588db0 add a TransactionsFormatter for commands 'history' and 'coming' 2012-02-26 18:31:07 +01:00
Romain Bignon
cf58a18f00 fix crash when a bookmarked housing has been removed from website 2012-02-22 12:59:57 +01:00
Romain Bignon
f5ca33f80e can looking for a rent or a sale 2012-02-19 18:35:33 +01:00
Romain Bignon
d24ea00611 display enhancements 2012-02-19 12:48:11 +01:00
Romain Bignon
d8d9eaef60 new housings on top 2012-02-19 10:57:27 +01:00
Romain Bignon
f0a41716f7 sort housings by cost/area 2012-02-19 10:36:12 +01:00
Romain Bignon
09d113b1be can write notes on housings, display them in list 2012-02-18 17:01:38 +01:00
Romain Bignon
1b76994e79 add button to remove a query 2012-02-18 13:15:00 +01:00
Romain Bignon
c8b6c7087b ability to edit queries 2012-02-18 12:56:11 +01:00
Romain Bignon
f340ac485e support bookmarks 2012-02-18 12:27:44 +01:00
Romain Bignon
379083d2d7 save read housings, and display new ones with a blue background 2012-02-18 11:58:28 +01:00
Romain Bignon
b7c23956b6 fix refresh of results when the selected query is missing 2012-02-17 13:55:02 +01:00
Romain Bignon
b6379f7f37 add parameter 'nb_rooms' in queries 2012-02-17 13:25:06 +01:00
Romain Bignon
dee6edef01 display thumnails in the housings list 2012-02-16 17:06:28 +01:00
Romain Bignon
07f105910e add new application qflatboob 2012-02-16 16:29:40 +01:00
Romain Bignon
cbefbe81d2 fix bad behaviors 2012-02-14 20:27:17 +01:00
Romain Bignon
0b8747264e wetboobs supports ICapWaterLevel 2012-02-14 18:23:20 +01:00
Romain Bignon
4dad51ddd7 add a beautiful formater for the 'info' command 2012-02-14 18:23:19 +01:00
Romain Bignon
85918b5d71 add application flatboob 2012-02-11 12:47:54 +01:00
Laurent Bachelier
cbfd59ed77 Remove useless shebang
In celebration of my second commit on weboob
2012-02-11 01:31:22 +01:00
Laurent Bachelier
346704bae5 Move videoob-webserver to contrib
Since no one seems to use it.
I fixed the biggest issues so it is now usable again!
2012-02-10 14:26:22 +01:00
Romain Bignon
58b825c463 remove useless chatoob application 2012-02-10 14:07:13 +01:00
Laurent Bachelier
c805f4c866 Information is an uncountable noun 2012-02-10 01:28:40 +01:00
Laurent Bachelier
936fe46bf6 Don't use the plural 2012-02-10 01:28:40 +01:00
Laurent Bachelier
5ea30516ac Fix incorrect translation
While this changes constants names, I think it is important as "accused" is
complely wrong. E-mails use the term "Read-receipts" so I chose
to go with RECEIVED.
2012-02-10 01:28:40 +01:00
Romain Bignon
5744a5b7a1 fix 'weboob-config list' filtered by capabilities (closes #786) 2012-02-07 19:11:51 +01:00