Did you also check that tgext.admin and tgext.crud are updated to the last version? There was a release with missing template files on pypi due to errors during packaging. It got removed but It might be that you installed that one Il 07/mag/2014 09:10 "Neil Ablang" <[email protected]> ha scritto:
> Hi Alessandro, > > Its using genshi as default renderer > > Best Regards > > Neil > > > On Wed, May 7, 2014 at 2:51 PM, Alessandro Molina < > [email protected]> wrote: > >> Which engines is your project using? Check in app_cfg.py that engines and >> default_engine are one of mako, jinja or genshi. Those are the only one >> supported by the admin. >> Also check that you have the latest version of tgext.crud and >> tgext.admin, try to update them to be sure you have the last one. >> >> >> On Tue, May 6, 2014 at 9:40 AM, Neil Ablang <[email protected]>wrote: >> >>> Hello, >>> >>> >>> I am having trouble with the built-in admin facilities for turbogears >>> 2.3.2 >>> >>> I followed the following steps in setting up >>> >>> 1. virtualenv --no-site-packages zigbee >>> >>> 2.cd zigbee >>> >>> 3.source bin/activate >>> >>> 4.pip install tg.devtools >>> >>> 5.gearbox quickstart zigbee >>> >>> 6. cd zigbee/ >>> >>> 7. python setup.py develop >>> 8. gearbox setup-app >>> 9. gearbox serve >>> >>> I have the following error when trying to edit a user once logged in as >>> manager, and using the admin tool. >>> Below is the error: >>> >>> >>> BR >>> >>> Neil Ablang >>> >>> ValueError >>> >>> ValueError: Could not find engine name for >>> tgext.admin.templates.bootstrap_form_layout >>> Traceback *(most recent call last)* >>> >>> - File "<string>", line *8*, in <Expression u'w.child.display()'> >>> - File >>> >>> "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/widgets.py", >>> line *456*, in display >>> >>> return self.generate_output(displays_on) >>> >>> - File >>> >>> "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/widgets.py", >>> line *496*, in generate_output >>> >>> mw, >>> >>> - File >>> >>> "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/templating.py", >>> line *189*, in render >>> >>> engine_name = get_engine_name(template_name, mw) >>> >>> - File >>> >>> "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/util.py", >>> line *122*, in __call__ >>> >>> tmp = self.f(*args, **kwargs) >>> >>> - File >>> >>> "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/templating.py", >>> line *72*, in get_engine_name >>> >>> raise ValueError("Could not find engine name for %s" % template_name) >>> >>> >>> ValueError: Could not find engine name for >>> tgext.admin.templates.bootstrap_form_layout >>> >>> The debugger caught an exception in your WSGI application. You can now >>> look at the traceback which led to the error. >>> >>> To switch between the interactive traceback and the plaintext one, you >>> can click on the "Traceback" headline. From the text traceback you can also >>> create a paste of it. For code execution mouse-over the frame you want to >>> debug and click on the console icon on the right side. >>> >>> You can execute arbitrary Python code in the stack frames and there are >>> some extra helpers available for introspection: >>> >>> - dump() shows all variables in the frame >>> - dump(obj) dumps all that's known about the object >>> - ctx the context of the failed request >>> >>> -- >>> 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 [email protected]. >>> >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/turbogears. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "TurboGears" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/turbogears/OyFvacH4XFE/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/turbogears. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

