Hi,
Congratulations for the new release!
I have a problem with the "Added jinja2 template loader with dotted
notation." feature. I use Jinja as template language and my existing code
does not work with this new feature.
*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)
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?
Thanks in advance,
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 08:17, Michael Pedersen <[email protected]> wrote:
> The TurboGears team is proud to announce the release of TurboGears 2.1.4!
>
> This release has many new features and bugfixes, all of them listed below.
> Due to issues with getting 2.2 released, we have chosen to produce another
> 2.1 based released. As a result, this release will be the final 2.1.x
> release, and the final release that will support Python 2.4.
>
> We strongly recommend you upgrade. We are seeing benefits of newer
> template engines and faster response speeds, and it's only going to improve.
>
> - Backport template rendering parameters from 2.2
> - Add hook for render calls to be able to hook even partials
> - Test unit for validation messing hooks
> - Improved Jinja template support for Python 2.4
> - Avoid running wrong decoration hooks when controller is switched due
> to a validation error
> - Permit to avoid doctype injection when manually rendering templates
> with tg.render.render
> - Added new new command (tgdevelop tgdeps) to setup.cfg to help with
> creating a good working virtualenv.
> - Added jinja2 template loader with dotted notation.
> - Fixed multiple paginators in same page
> - Fixed missing tw.forms dependency when auth is disabled
>
>
> --
> Michael J. Pedersen
> My Online Resume: http://www.icelus.org/ -- Google+
> http://plus.ly/pedersen
> Google Talk: [email protected] -- Twitter: pedersentg
>
> --
> 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.