Hi,
I can make it work by commenting lines from 20 thru 27, and always load
templates using FileSystemLoader I don't really need a patch to get it
work, I was just wondering how these things happen. I can even wait for
your patch to be merged into the trunk or whatever change that makes it
work without hacking TG 2.1.5.

Thanks for your support, Carlos

León Domingo

Ender - Factoría de Software
[email protected] <[email protected]>
Avda. Cerro del Águila, 7. S23 - 2ª Planta
28703 S.S. de los Reyes (MADRID)
Tlf. 902 01 44 01

<http://www.ender.es/>
<http://www.facebook.com/home.php?#%21/pages/San-Sebastian-de-los-Reyes-Spain/Ender-Factoria-de-Software/142213119143359?ref=ts>
* <http://www.ender.es>*


On 7 April 2012 18:46, Carlos Daniel Ruvalcaba Valenzuela <
[email protected]> wrote:

>
> *Turbogears-2.1.5/tg/dottednames/jinja_lookup.py*
>>
>> 20        # Check if dottedname
>> 21        if not template.endswith('.html'):
>> 22            # Get the actual filename from dotted finder
>> 23            finder = config['pylons.app_globals'].dotted_filename_finder
>> 24            template = finder.get_dotted_filename(
>> 25                template_name=template,
>> 26                template_extension=self.template_extension)
>> 27        else:
>> 28            return FileSystemLoader.get_source(self, environment,
>> template)
>>
>>
> This certainly look different  to what I have on my repo (215 branch), the
> template extension is factored out on a class variable called
> template_extension.
>
>
> I don't really understand the meaning of this code. Why the extension
>> determines the loader to be used? I have templates with other extenions
>> besides .html.
>>
>> It's the first time i face a problem like this, How do I have to act?
>> Will you propose some modification to this code? Do I have to apply my own
>> patch to all my code?
>>
>
> The problem here is that we need defaults, and while mako templates
> usually default to mak, jinja does not have a widely accepted extension,
> the official jinja docs suggest the .html extension, thus we use that.
>
> I could prepare a patch to set the template extension if that is what you
> need, but it may get merged later.
>
> Regards,
> Carlos Ruvalcaba
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" 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/turbogears?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to