[ckan-dev] move functionality from controllers into helper functions

Toby Dacre toby.okfn at gmail.com
Fri Jun 1 15:05:56 UTC 2012


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

cheers
Toby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120601/27f17ca2/attachment.html>


More information about the ckan-dev mailing list