Cannot import Genshi templates by filename

20 views
Skip to first unread message

Christoph Zwerschke

unread,
Jun 11, 2012, 8:43:07 AM6/11/12
to toscawidge...@googlegroups.com
I noticed that since the template-sys branch has been merged in (see
https://github.com/toscawidgets/tw2.core/commit/832435945ffcdcb5608225d38e7262d09c16ce01),
loading Genshi templates does not work anymore via filenames (template =
'genshi:./index.html') as it is done in the tutorial here
(http://tw2core.readthedocs.org/en/latest/standalone/). I get an "Error
- <type 'exceptions.ImportError'>: Import by filename is not supported."

Is this this functionality been removed deliberately? If yes, the
tutorial should be adapted accordingly.

-- Christoph


Ralph Bean

unread,
Jun 11, 2012, 7:27:02 PM6/11/12
to toscawidge...@googlegroups.com
Christoph, thanks for reporting! I created an issue to track this here --
https://github.com/toscawidgets/tw2.core/issues/30

The feature should probably be re-introduced; it's removal was
short-sighted on my part.

Yours-
-Ralph
> --
> You received this message because you are subscribed to the Google Groups "ToscaWidgets-discuss" group.
> To post to this group, send email to toscawidge...@googlegroups.com.
> To unsubscribe from this group, send email to toscawidgets-dis...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/toscawidgets-discuss?hl=en.
>
Reply all
Reply to author
Forward
0 new messages