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" Thanks Madhu Alagu On Mar 17, 2:12 am, Ben Bangert <[EMAIL PROTECTED]> wrote: > On Mar 16, 2008, at 5:35 PM, Anton2 wrote: > > > I don't know if it's the right place for it, but here are some issues > > i've had in porting a project from Pylons 9.7.6.1 to yesterday's tip > > My project is using SQLAlchemy, and a mix of mako and genshi. > > > There was a requirement for WebError >= 0.9, wich can't be satisfied. > > Now fixed if I read the last changeset correctly. > > > Paste templates where missing in the tip tarball, but ok from hg. > > > I've had some strange results, tracked down to the SA session not > > being emptied between requests : the recommended meta.Session.remove() > > is missing in BaseController.__call__ > > Thanks for the reminder, I noticed this on Thursday in the tutorial I > gave, and forgot later what I needed to fix. I've fixed this in tip. > > > In templating.py, render_genshi takes a 'format' argument, and does > > not pass it to genshi : I've had to change > > return template.generate(**globs).render() > > to > > return template.generate(**globs).render(method=format) > > This was however easy to do thanks to the new templating system, more > > understandable than the previous one. > > Doh, in fact, the render_genshi totally ignored both format and > fragment. I've fixed it to pass them on to render now. Thanks! > > A beta2 will likely go up first thing tomorrow morning so that the ppl > sprinting can use the latest. > > The download link for easy_install to the eggs (don't use till the AM > when a new beta2 is up), is: > easy_install -U -fhttp://pylonshq.com/download/0.9.7Pylons > > Cheers, > Ben > > smime.p7s > 3KDownload --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---