Ticket #130 (closed enhancement: fixed)
`callback` was not beying fetched by Genshi's Buffet pugin interface
| Reported by: | palgarvio | Owned by: | palgarvio |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4.3 |
| Component: | Template engine plugin | Version: | 0.4.2 |
| Keywords: | Cc: |
Description
Here a fix for that problem:
-
genshi/template/plugin.py
48 48 49 49 self.default_encoding = options.get('genshi.default_encoding', 'utf-8') 50 50 auto_reload = options.get('genshi.auto_reload', '1') 51 callback = options.get('genshi.callback', None) 51 52 if isinstance(auto_reload, basestring): 52 53 auto_reload = auto_reload.lower() in ('1', 'on', 'yes', 'true') 53 54 search_path = filter(None, options.get('genshi.search_path', '').split(':')) … … 67 68 auto_reload=auto_reload, 68 69 max_cache_size=max_cache_size, 69 70 default_class=self.template_class, 70 variable_lookup=lookup_errors) 71 variable_lookup=lookup_errors, 72 callback=callback) 71 73 72 74 def load_template(self, templatename, template_string=None): 73 75 """Find a template specified in python 'dot' notation, or load one from
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
