weboob-devel/weboob/capabilities
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
..
__init__.py 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
account.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
bank.py 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
base.py add method CapBaseObject.set_empty_fields() 2012-03-12 13:42:00 +01:00
bill.py Add Bill object 2012-03-13 22:01:11 +01:00
bugtracker.py fix license to AGPL 2011-07-24 19:55:28 +02:00
chat.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
collection.py Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
contact.py ICapContact: manage personal notes about a contact 2011-12-04 11:14:53 +01:00
content.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
dating.py new Event object 2011-10-19 18:55:08 +02:00
gallery.py rename iter_search_results to either search_videos and search_gallery (closes #779) 2012-03-12 16:24:33 +01:00
gauge.py enhance ICapWaterLevel capability 2012-02-14 18:23:19 +01:00
geolocip.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
housing.py can looking for a rent or a sale 2012-02-19 18:35:33 +01:00
library.py 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
messages.py Fix incorrect translation 2012-02-10 01:28:40 +01:00
paste.py CapPaste: Also check the title in can_post 2011-05-05 00:19:21 +02:00
radio.py use CapResources for radios 2011-04-21 12:07:37 +02:00
torrent.py Support magnet URLs in weboorents 2012-03-09 02:49:00 +01:00
travel.py ability to set an arrival or a departure time 2011-07-13 15:12:17 +02:00
video.py 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
weather.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00