Mercurial > agora-palash
view apps/snippet/templatetags/snippet_tags.py @ 42:ab608f27ecd5
Copy preliminary django-paste code for snippets along with mptt. Works clunkily. Still need to adapt it for Agora.
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Thu, 29 Jul 2010 00:25:30 -0500 |
parents | |
children |
line wrap: on
line source
from django.template import Library register = Library() @register.filter def in_list(value,arg): return value in arg