Skip to content
  1. Jul 05, 2014
  2. May 19, 2014
  3. May 15, 2014
  4. May 14, 2014
  5. Jan 08, 2014
  6. Dec 22, 2013
  7. Aug 03, 2013
  8. Jul 27, 2013
  9. Mar 26, 2013
  10. Mar 16, 2013
  11. Mar 15, 2013
  12. Jan 25, 2013
  13. Oct 28, 2012
  14. Oct 24, 2012
  15. May 04, 2012
  16. Apr 03, 2012
  17. Apr 01, 2012
  18. Mar 16, 2012
    • Laurent Bachelier's avatar
      Move the "empty search for latest" to collections · e958c229
      Laurent Bachelier authored
      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.
      e958c229
  19. Mar 14, 2012
    • Romain Bignon's avatar
      bump to 0.c · 8e391d0b
      Romain Bignon authored
      8e391d0b
    • Laurent Bachelier's avatar
      PEP8 style fixes and other small style fixes · 006e97a8
      Laurent Bachelier authored
      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
      006e97a8
  20. Mar 13, 2012
    • Laurent Bachelier's avatar
      Prepare for objects that are also Collections · fae44701
      Laurent Bachelier authored
      Don't force objects to have an id, especially since that id was
      incorrect. "plap/plop" would have the same id as "plop", i.e. "plop".
      We don't rely on the id for handling Collections anymore.
      
      Change to use more unique property names.
      
      Change the display, instead of using '*', we use '~', and there is no
      "Collection" header anymore.
      Updated formatters could use that way of showing the object is also a
      collection too.
      
      refs #774
      fae44701
    • Laurent Bachelier's avatar
      f4dbefb6
    • Laurent Bachelier's avatar
      Friendlier paths in canalplus · 5578618b
      Laurent Bachelier authored
      Lowercase, replace some separators.
      This shows the point of having a path and a title!
      Also try to fix the title if it is all uppercase.
      5578618b
    • Laurent Bachelier's avatar
      Move all canalplus pages in one file · ec689b1e
      Laurent Bachelier authored
      There isn't enough code to justify multiple files.
      Also includes pep8 fixes.
      ec689b1e
    • Laurent Bachelier's avatar
      Better path changing support · b6021d47
      Laurent Bachelier authored
      * Create a get_collection method similar to get_* methods for objects.
      * Fix title initialization of a collection
      * Remove the hack were both id and title were allowed when CDing.
        That hack only worked with the canalplus module, and failed with
        others like redmine (but they still showed in suggestions).
        Moreover, the canalplus module now has friendlier IDs
        so this is not really needed anymore.
      * Allow backends to tell if a path is valid or not.
        For instance, it now allows to cd in a Redmine project with no issues
        in it. It also won't display "404" for invalid project IDs.
        By default, we still use the unreliable method of checking there is at
        least one result in iter_resources().
      * Fix cd completion to work with unicode strings (all strings after an
        unicode string were ignored!)
      * Do not suggest '..' when completing cd in the root
      
      refs #774
      b6021d47
    • 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
        ite...
      b4b71829
  21. Mar 12, 2012
  22. Mar 06, 2012
  23. Feb 10, 2012
  24. Feb 05, 2012
  25. Feb 02, 2012
    • Laurent Bachelier's avatar
      Make CapCollection understandable and useable by humans · 682e14c8
      Laurent Bachelier authored
      * Make the declaration of fct and it in the constructor Collection,
       instead of adding them from the outside
      * Add a function to flatten a list containing collection (solves the
       radioob search crash)
      * Better display of collections in the "ls" command (and display both id
       and title)
      * The "cd" command goes to the root of the path (like the UNIX cd)
      * Move the Video object of canalplus in a correct path
      * Make Collection iterable
      * Add comments to CapCollection
      * Cache the result of fct in a Collection; it is only called once
      * CollectionNotFound errors can be more explicit by providing a path
      * Require utf-8 in collection paths
      * Code cleanups
      682e14c8
    • Laurent Bachelier's avatar
  26. Jan 24, 2012
  27. Jan 17, 2012