[ckan-dev] move functionality from controllers into helper functions
Toby Dacre
toby.okfn at gmail.com
Wed Jun 13 09:50:48 UTC 2012
On 1 June 2012 16:05, Toby Dacre <toby.okfn at gmail.com> wrote:
> Hi,
>
> Following on from moving follower functionality out of the
> dataset/user/related controllers into helper functions, I'd like to start
> moving some other functionality eg activity streams so that controllers
> only do the work they really need to do and other unrelated work can be
> done by the templates (via helper functions).
>
> To enable this I think we need to you wrapper functions decorated as
> properties. After a bit of searching I've worked out how to get this
> working in genshi (jinja behaves as it should)
> I've put a demo patch here for comment
>
> https://github.com/okfn/ckan/pull/18
>
As no-one has expressed a problem with this I'd now like it to be pulled
into master so it is available as needed
>
> cheers
> Toby
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120613/b6b7e347/attachment-0001.html>
More information about the ckan-dev
mailing list