I'm attempting an upgrade to 0.9.6 but cannot get Myghty running as the default 
template language. The doco on 
http://wiki.pylonshq.com/display/pylonsdocs/Using+Other+Template+Languages says 
that Myghty is not supported by the template_engine argument passed to 
config.init_app and refers to the 'extensive Config docs from the Pylons Module 
API' (the link is broken btw).

The extensive docs in pylons/configuration.py say :        

Example of changing the default template engine:

        .. code-block:: Python

            # In yourproj/middleware.py
            # ...
            config.init_app(global_conf, app_conf, package='yourproj')

            # Remove existing template engine
            old_default = config.template_engines.pop()

            # Load additional template engines
            kidopts = {'kid.assume_encoding':'utf-8', 'kid.encoding':'utf-8'}
            config.add_template_engine('kid', 'yourproj.kidtemplates', kidopts)

            # Add old default as additional engine
            config.template_engines.append(old_default)

But this looks like it is out of date as init_app() is now called in 
environment.py. Adding Myghty using config.add_template_engine() fails firstly 
with 

 File 
"/home/robert/msdev1/lib/python2.5/Pylons-0.9.6-py2.5.egg/pylons/wsgiapp.py", 
line 78, in __init__
    alias=e['alias'], **e['template_options'])
  File 
"/home/robert/msdev1/lib/python2.5/Pylons-0.9.6-py2.5.egg/pylons/templating.py",
 line 75, in prepare
    '"%s" to use its functionality' % engine_name)
 pylons.templating.TemplateEngineMissing: Please install a plugin for "myghty" 
to use its functionality

when BuffetMyghty is installed it fails with :

 File 
"/home/robert/msdev1/lib/python2.5/Pylons-0.9.6-py2.5.egg/pylons/templating.py",
 line 80, in prepare
    options=config), 
 TypeError: __init__() got an unexpected keyword argument 'options'

What is the correct way to get Myghty functioning as the default for 0.9.6?

Robert

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to