Re: Token parsing

2009-01-21 Thread Jacob Kaplan-Moss

On Thu, Jan 22, 2009 at 3:58 AM, Peter2108  wrote:
> Not quite sure if this is the place to post this. Anyway, in the
> module template.loader.tags the do_extends function parses a tokens
> content like this:bits = token.contents.split()  which does not
> work correctly if the
> extends path has a folder name with a space in it (as one of mine
> did). I read in the docs on adding tags (http://docs.djangoproject.com/
> en/dev/howto/custom-template-tags/) that token.split_contents() should
> be used so this looks like a bug.

Yup, it is -- please file a bug in the ticket tracker. Thanks!

Jacob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Token parsing

2009-01-21 Thread Peter2108

Not quite sure if this is the place to post this. Anyway, in the
module template.loader.tags the do_extends function parses a tokens
content like this:bits = token.contents.split()  which does not
work correctly if the
extends path has a folder name with a space in it (as one of mine
did). I read in the docs on adding tags (http://docs.djangoproject.com/
en/dev/howto/custom-template-tags/) that token.split_contents() should
be used so this looks like a bug.

Thanks, Peter

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---