On 3/22/07, Michael Lake <[EMAIL PROTECTED]> wrote: > > Kenneth Gonsalves wrote: > > > On 22-Mar-07, at 9:25 AM, Michael Lake wrote: > >>>write your own tag - someone has done it, you can see it in this > >>>file: > >>> > >>>http://nrcfosshelpline.in/code/browser/trunk/web/templatetags/ > >>>base_utils.py > >>> > >>>class CompareNode near the end > >> > >>But that link above no longer works. > > > works now - thanks for the heads up on this > Thanks for that Kenneth. > The code there looks like just what I need. > You can also use PyIf tag(written by me) to do that.
http://www.djangosnippets.org/snippets/12/ And it can support any python expression. So it's more general I think. -- I like python! UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---