Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement on filters #66

Closed
wants to merge 9 commits into from
Closed

Improvement on filters #66

wants to merge 9 commits into from

Commits on Oct 27, 2011

  1. Cleaned up sort and dictsort filters, by moving creation of the sort_…

    …func into a factory function.
    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    8a88f5c View commit details
    Browse the repository at this point in the history
  2. Added 'min' and 'max' filter.

    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    0645a8e View commit details
    Browse the repository at this point in the history
  3. Added 'filter' filter.

    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    59d633a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31f87d3 View commit details
    Browse the repository at this point in the history
  5. Added 'unique' filter.

    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    2d9a896 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0abc365 View commit details
    Browse the repository at this point in the history
  7. Made 'groupby' filter case insensitive by default, like the 'sort' an…

    …d 'dictsort' filter.
    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    a8dabbe View commit details
    Browse the repository at this point in the history
  8. Refactored 'filter' filter and added 'map' filter.

    * Keyword arguments are passed in addition to positional arguments
      to the test function, now.
    * The 'invert' keyword argument was removed in favor of a new
      filter called 'filterfalse'.
    * The new filter 'map' was added. It shares most of its code
      with the 'filter' and 'filterfalse' filters, but expects
      a filter instead of test and calls map() instead of filter().
    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    b8be8c9 View commit details
    Browse the repository at this point in the history
  9. Added 'strict' keyword argument to Environment.getitem and Environmen…

    …t.getattr.
    
    That way we don't need to repeat the logic in the `attr` filter.
    Also it simplifies the implementation of the derived SandboxedEnvironment.
    snoack committed Oct 27, 2011
    Configuration menu
    Copy the full SHA
    a0ef3a1 View commit details
    Browse the repository at this point in the history