6019b163d6
The logic for massaging the fields and filters data was being done in the controllers. This change pulls that logic out of the controllers and puts it in a generic hook so that it's done for all controllers. This will later be used for pagination, but thats not the main motivation of this patch. Ideally, the filters and fields would be passed into the controller methods themselves as kwargs, but that is not easily done due to pecan not easily allowing overriding the args and kwargs passed to the controller methods. For now, the fields and filters will have to be pulled out of the request context. Change-Id: Ibea9087c7036faa064b87acb52e09c9a3c74148a |
||
---|---|---|
.. | ||
controllers | ||
hooks | ||
__init__.py | ||
app.py | ||
constants.py | ||
startup.py |