13 messages in com.googlegroups.pylons-discussRe: Pylons 0.9 and object m| From | Sent On | Attachments |
|---|---|---|
| Amper | 11 Jul 2006 02:50 | |
| Huy | 11 Jul 2006 03:47 | |
| Amper | 11 Jul 2006 07:20 | |
| Ben Bangert | 11 Jul 2006 07:35 | |
| Ben Bangert | 11 Jul 2006 07:53 | |
| Tomas Brabenec | 11 Jul 2006 09:08 | |
| Ben Bangert | 11 Jul 2006 09:43 | |
| Alex Greif | 29 Jul 2006 14:44 | |
| Ben Bangert | 29 Jul 2006 14:45 | |
| Alex Greif | 29 Jul 2006 14:50 | |
| Ben Bangert | 29 Jul 2006 14:51 | |
| Alex Greif | 29 Jul 2006 15:10 | |
| Ben Bangert | 29 Jul 2006 15:25 |
| Subject: | Re: Pylons 0.9 and object m![]() |
|---|---|
| From: | Ben Bangert (be...@groovie.org) |
| Date: | 07/11/2006 07:53:08 AM |
| List: | com.googlegroups.pylons-discuss |
On Jul 11, 2006, at 2:50 AM, Amper wrote:
I have been using Pylons 0.8.1. All was ok. Now I downloaded and installed development version 0.9dev_r1020 and in this version I have problem with object "m". If I use m.write() or m.subexec() I see error page with: "exceptions.NameError: global name 'm' is not defined", why ?
Where is a problem, please ?
Also, not sure the message thread mentioned it, here are the equivilants for the common 'm' functions.
m.write('hello world') is now: return response('hello world')
m.subexec('/some/template.myt') becomes: return render_response('/some/template.myt')
content = m.scomp('/some/template.myt') is: content = render('/some/template.myt', fragment=True)
m.comp('/some/template.myt') is: return render_response('/some/template.myt', fragment=True)
The getting started docs have now had a preliminary update for 0.9: http://pylonshq.com/docs/0.9/getting_started.html
And the render command features are described here: http://pylonshq.com/docs/0.9/module-pylons.templating.html
HTH, Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to pylo...@googlegroups.com
To unsubscribe from this group, send email to
pylo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---




