#1126: cannot use genshi template with a widget
------------------------+---------------------------------------------------
 Reporter:  max         |       Owner:  anonymous             
     Type:  defect      |      Status:  new                   
 Priority:  normal      |   Milestone:                        
Component:  unassigned  |     Version:  1.0b1                 
 Severity:  normal      |    Keywords:  widget template plugin
------------------------+---------------------------------------------------
 I've declared a widget that uses Genshi for templating:

 {{{
 class SimpleDataGrid(widgets.DataGrid):
     template = 'genshi:spaca.templates.simplegrid'
     javascript = [widgets.mochikit, widgets.JSLink('spaca',
 'spa_summary.js')]
 }}}

 At render time TurboGears produces an exception:

 {{{
 File 'D:\\Projects\\Spaca\\spaca\\templates\\related_something.py', line
 86 in _pull
 File 'c:\\python24\\lib\\site-packages\\TurboGears-1.0b1-
 py2.4.egg\\turbogears\\widgets\\meta.py', line 107 in lockwidget
   output = self.__class__.display(self, *args, **kw)
 File 'c:\\python24\\lib\\site-packages\\TurboGears-1.0b1-
 py2.4.egg\\turbogears\\widgets\\base.py', line 226 in display
   return view.engines.get('kid').transform(params, self.template_c)
 File 'c:\\python24\\lib\\site-
 packages\\TurboKid-0.9.8-py2.4.egg\\turbokid\\kidsupport.py', line 162 in
 transform
   tclass = self.load_template(template)
 File 'c:\\python24\\lib\\site-
 packages\\TurboKid-0.9.8-py2.4.egg\\turbokid\\kidsupport.py', line 68 in
 load_template
   "%s.kid" % basename)
 File 'c:\\python24\\lib\\site-packages\\setuptools-0.6c3-
 py2.4.egg\\pkg_resources.py', line 799 in resource_filename
   return get_provider(package_or_requirement).get_resource_filename(
 File 'c:\\python24\\lib\\site-packages\\setuptools-0.6c3-
 py2.4.egg\\pkg_resources.py', line 119 in get_provider
   __import__(moduleOrReq)
 exceptions.ImportError: ('No module named genshi:spaca.templates',
 <function _wrapper at 0x01A36FB0>)
 }}}

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1126>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to