When Kenneth suggested "try: @register.filter", he meant, try: 
"@register.filter", that is, the word "try:" was not meant to go in the 
file.

You may have an import problem in your models file.  Can you post more 
of the source so that we can take a look?

--Ned.
http://nedbatchelder.com/blog

[EMAIL PROTECTED] wrote:
> Thanks for the input.
>
>   
>> try: @register.filter  <--- without the '()'
>>     
>
> so long as this is in the file, I get a syntax error if I run the file
> from the command prompt, with the caret pointing to the '@', with or
> without the '()'.  I get the same thing if I do this after the
> function:
>
> try: register.filter(category_url)
>
> If there is no 'try' in the module, I can import the the filter
> function in the python shell and it works correctly.
> I am not sure what else you might have meant by running from the
> shell.
> Thanks for your help.
>
> Jonathan
>   
>> --
>>
>> regards
>> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
>> Foss Conference for the common man:http://registration.fossconf.in/web/
>>     
> >
>
>   

-- 
Ned Batchelder, http://nedbatchelder.com


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to