weboob-devel/modules
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
..
.keys Add support for generating a keyring 2012-01-29 16:50:23 +01:00
arte do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00
aum Raise exception instances, not classes 2012-02-11 01:07:21 +01:00
batoto Better descriptions for modules 2012-02-11 00:46:48 +01:00
bnporc Fix account types and add account types support to bnporc, for the account types I could get. 2012-03-11 01:33:20 +01:00
boursorama Account.link_id becomes a private attribute 2012-03-10 09:03:26 +01:00
bouygues Better descriptions for modules 2012-02-11 00:46:48 +01:00
bp Account.link_id becomes a private attribute 2012-03-10 09:03:26 +01:00
canalplus Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
canaltp bump to 0.b 2012-02-05 19:35:30 +01:00
cappedtv fix empty searches 2012-03-13 12:52:19 +01:00
cmb Add type and label support to CMB backend 2012-02-29 18:55:43 +01:00
cragr Account.link_id becomes a private attribute 2012-03-10 09:03:26 +01:00
creditmutuel Fix Python 2.5 support 2012-03-13 12:36:02 +01:00
dailymotion do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00
dlfp fix in case get_thread() is called with a numerical ID (and not a Thread instance) 2012-03-06 19:38:22 +01:00
eatmanga Better descriptions for modules 2012-02-11 00:46:48 +01:00
ecrans Pep8 on ecrans module 2012-03-13 17:31:24 +01:00
ehentai rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
fourchan Better descriptions for modules 2012-02-11 00:46:48 +01:00
francetelevisions rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
freemobile Search bills on freemobile 2012-03-13 22:01:13 +01:00
gazelle Clean up the Torrent object 2012-03-09 00:43:02 +01:00
geolocip Better descriptions for modules 2012-02-11 00:46:48 +01:00
hds Better descriptions for modules 2012-02-11 00:46:48 +01:00
hsbc Fix Python 2.5 support 2012-03-13 12:36:02 +01:00
ina do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00
ing Pep8 cleanups for ING module 2012-03-13 14:56:36 +01:00
inrocks Better descriptions for modules 2012-02-11 00:46:48 +01:00
ipinfodb Better descriptions for modules 2012-02-11 00:46:48 +01:00
isohunt Clean up the Torrent object 2012-03-09 00:43:02 +01:00
izneo Better descriptions for modules 2012-02-11 00:46:48 +01:00
kickass Make kickass code less crappy 2012-03-09 01:43:45 +01:00
lcl Account.link_id becomes a private attribute 2012-03-10 09:03:26 +01:00
lefigaro Better descriptions for modules 2012-02-11 00:46:48 +01:00
mangafox fix mangafox, chiennes 2012-03-04 09:11:12 +01:00
mangahere Better descriptions for modules 2012-02-11 00:46:48 +01:00
mangareader Better descriptions for modules 2012-02-11 00:46:48 +01:00
mediawiki Better descriptions for modules 2012-02-11 00:46:48 +01:00
meteofrance bump to 0.b 2012-02-05 19:35:30 +01:00
minutes20 Better descriptions for modules 2012-02-11 00:46:48 +01:00
newsfeed bump to 0.b 2012-02-05 19:35:30 +01:00
nolifetv rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
nova Better descriptions for modules 2012-02-11 00:46:48 +01:00
opacwebaloes add library capability and backend and application for archimede software aloes http://www.archimed.fr/aloes/presentation-et-avantages-12.html 2012-03-13 21:57:38 +01:00
orange Better descriptions for modules 2012-02-11 00:46:48 +01:00
ouifm Fix error when no artist/title 2012-02-12 15:18:20 +01:00
pap Fix Python 2.5 support 2012-03-13 12:36:02 +01:00
pastealacon Better descriptions for modules 2012-02-11 00:46:48 +01:00
pastebin Remove PAGES hacks from pastebin, cleanups 2012-03-12 00:24:29 +01:00
phpbb bump to 0.b 2012-02-05 19:35:30 +01:00
piratebay Support magnet URLs when downloading with piratebay 2012-03-09 02:50:20 +01:00
presseurop pep8 on presseurop module 2012-03-13 17:34:16 +01:00
radiofrance Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
redmine Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
sachsen Make pep8 happy on sachsen module 2012-03-13 14:46:55 +01:00
seloger Fix Python 2.5 support 2012-03-13 12:36:02 +01:00
sfr Better descriptions for modules 2012-02-11 00:46:48 +01:00
simplyreadit Better descriptions for modules 2012-02-11 00:46:48 +01:00
societegenerale Account.link_id becomes a private attribute 2012-03-10 09:03:26 +01:00
transilien Better descriptions for modules 2012-02-11 00:46:48 +01:00
yahoo Better descriptions for modules 2012-02-11 00:46:48 +01:00
youjizz do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00
youporn do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00
youtube do not use thumbnail_url anymore (closes #810), use set_empty_fields() method, do not give fields in constructor of BaseVideo anymore 2012-03-12 17:16:42 +01:00