weboob-devel/weboob/tools
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
..
application Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
browser Support gzipped responses 2012-03-09 01:35:51 +01:00
capabilities add required class attributes 2012-03-10 09:23:12 +01:00
captcha MappedVirtKeyboard: fix default value for map_attr 2012-01-24 23:51:59 +01:00
config Use libyaml for faster loading and saving 2012-03-06 19:11:02 +01:00
parsers default parsers are now only lxml and lxmlsoup, to prevent bad behaviors with bad parsers 2012-02-02 10:17:41 +01:00
__init__.py remove namespace packages info 2010-11-25 16:39:05 +01:00
backend.py Try to separate saved responses by backend 2012-02-01 23:04:04 +01:00
decorators.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
inspect.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
log.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
mech.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
misc.py delete 'remove_html_tags' global function, and create IParser.tocleanstring and IParser.strip abstract methods. 2011-10-25 13:28:43 +02:00
newsfeed.py Add rsscomment to newsfeed 2012-03-06 19:30:58 +01:00
ordereddict.py Try to import Python's OrderedDict 2011-04-23 23:55:12 +02:00
path.py Make Collection more safe and sane 2012-03-13 22:08:45 +01:00
property.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
storage.py change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
test.py Switch back to running tests for one backend only 2011-05-04 23:18:29 +02:00
value.py disable keyrings without warnings in pyflakes (refs #706) 2012-02-02 15:59:01 +01:00