Skip to content
  1. Feb 27, 2019
  2. Feb 24, 2019
  3. Jan 06, 2019
  4. Mar 18, 2018
  5. Mar 02, 2018
  6. Sep 20, 2017
  7. Jan 08, 2017
  8. Feb 11, 2016
  9. Oct 17, 2014
  10. Oct 10, 2014
  11. Sep 03, 2014
  12. Jul 05, 2014
  13. May 19, 2014
  14. Jan 22, 2014
  15. Jan 08, 2014
  16. Dec 17, 2013
  17. Aug 03, 2013
  18. Jul 27, 2013
  19. May 16, 2013
  20. Mar 26, 2013
  21. Feb 12, 2013
  22. Feb 07, 2013
  23. Jan 25, 2013
  24. Jan 10, 2013
  25. Nov 12, 2012
  26. Oct 28, 2012
  27. May 10, 2012
  28. May 04, 2012
  29. Apr 27, 2012
  30. Apr 03, 2012
  31. Mar 14, 2012
  32. Mar 13, 2012
    • Laurent Bachelier's avatar
      Make Collection more safe and sane · b4b71829
      Laurent Bachelier authored
      * 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
      b4b71829
  33. Feb 14, 2012
  34. Feb 05, 2012
  35. Oct 10, 2011
  36. May 08, 2011