tgapp-calendarevents , tgext.pluggable and default_renderer = 'mako'

19 views
Skip to first unread message

solab solab

unread,
Apr 5, 2014, 1:14:33 PM4/5/14
to turbo...@googlegroups.com
Hi  all

I was trying the tgapp-calendarevents,

In my app_cfg.py I have:
base_config.default_renderer = 'mako'

When i go  to http:...8080/calendarevents/ the pluggable is searching for mako templates,
but they are not existing,(only genshi)

Is there way to force turbogears to  use genshi template only for the specic calendar plugin ?
something like :
plug(base_config, 'calendarevents', event_types=[Concert()], renderer='genshi')

Regards
Gio

Alessandro Molina

unread,
Apr 5, 2014, 4:16:49 PM4/5/14
to TurboGears .
That is actually an issue in calendarevents as pluggables should always specify the rendering engine so that they can be used even when the default engine is not the one they rely on.

You can probably work around the issue by using tg.pluggable.replace_template replacing the templates with themselves with the engine specified.


--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages