[ckan-dev] Pylons context object
Khalegh Mamakani
khalegh at highwaythreesolutions.com
Thu Mar 13 20:12:09 UTC 2014
Hi Pabitra,
context object is not accessible in snippets and package_metadata_fields.html is a snippet. I had the same problem and I used helper functions instead.
Best,
Khalegh
On Mar 13, 2014, at 12:20 PM, Pabitra Dash <pkdash_reena at hotmail.com> wrote:
> Hi All,
>
> Any idea why the context object (c) may not be available in a template. Jinja is throwing an error 'c' undefined. I am getting this error in my extended template 'package_metadata_fields.html' where I am trying to access the 'c.user' object.
>
> Thanks
> Pabitra
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140313/ddb54c99/attachment-0003.html>
More information about the ckan-dev
mailing list