Hello,


paster create -t pylons kk version=0.144 sqlalchemy=true
template_engine=genshi zip_safe=false


from pylons.templating import render_mako as render



Is it useful for Multi-Template ?



Thanks

Madhu Alagu

On Apr 1, 8:46 am, Madhu Alagu <[EMAIL PROTECTED]> wrote:
> Thanks,Now,It's working fine.
>
> On Apr 1, 6:54 am, "Mike Orr" <[EMAIL PROTECTED]> wrote:
>
> > On Mon, Mar 31, 2008 at 7:00 AM, Madhu Alagu <[EMAIL PROTECTED]> wrote:
>
> > >  Hello,
>
> > >  pylons-0.9.7beta3.
>
> > >  login.py
>
> > >  def index(self):
> > >      return render('/login.mak')
>
> > >  I receive an error message  "NameError: global name 'render' is not
> > >  defined"
>
> > You have to import it:
>
> >     from pylons.templating import render_mako as render
>
> > If your controllers "import *" the base controller, you can put it in
> > the base controller.  Otherwise you'll have to put it in every
> > controller.
>
> > Added to "What's new in Pylons 
> > 0.9.7"?http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779
>
> > --
> > Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@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-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to