[patch] to add filter "get" to add getting data from dicts and lists
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Any chance this could be added? I want to display a list of items with user customizable columns. I couldn't see any other way to do this other than implementing a filter. It seems like it would be a fairly fundamental filter, but it's absent from the library ("slice" isn't appropriate as dicts don't play nice with them). An alternative, of course, would be to have "getitem" and "getattr" filter, but that's slightly more verbose and technical. Any chance this could be added? Thanks.
Change History (4)
comment:1 Changed 10 years ago by
|Summary:||patch to add filter "get" to add getting data from dicts and lists → [patch] to add filter "get" to add getting data from dicts and lists|