On Tue, May 24, 2011 at 12:14 PM, Carl Meyer <[email protected]> wrote: > On 05/24/2011 11:53 AM, Jeremy Dunck wrote: >> I was wondering how people would feel about template origin being an >> attribute of the Template instance. >> >> The point to me would be to make it easier to see which location a >> template is coming from; I think the compile_string func could do it-- >> after constructing the template, the loader would annotate with >> origin. >> >> It seems obviously useful, so I think there must be a good reason it >> wasn't already done. :) > > Looking at the code only briefly, it seems pretty reasonable to me. >
Eh, I was looking at the 1.2 tree, and in any case, misread some code. So, Template.__init__ in the 1.3 tree, anyway: + self.origin = origin -- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
