Hi,

I'm following Siddhi's video and trying to figure out why my wikify
filter is not working. Keep getting an Invalid filter: 'wikify',
error. I stripped the filter down to just see if I got something wrong
but i keep getting the same error. According to the django book I
assume that I should use the Library.filter() function since I am
using python 2.3 w/ v.97 pre.
here is the wikilink.py filter code:

from django import template
import re
wikilink = re.compile("\\b([A-Z][a-z]+[A-Z][a-z]+)\\b")
register = template.Library()
register.filter('wikify', wikify)
def wikify(value):
    return wikilink.sub(r"<a href='/tester/\1/'>\1</a>", value)



-my html has the requisite {% load wikilink %} tag and the filter
{{content|wikify}} is added as well.

Any help would be appreciated.

Thanks







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to