On Oct 1, 5:17 am, Krishnakant <[email protected]> wrote:
> > from cp.lib.base import BaseController, render
> I did not see any code specifying that the form will be rendered using
> mako.

My default render function is defined in project/lib/base.py and is
set to mako.  In base.py:

from pylons.templating import render_mako as render


> > ${tmpl_context.form()|n}
> What is the meaning of |n in that mako tenplate?

n : disable all default filtering; only filters specified in the local
expression tag will be applied.

From: http://www.makotemplates.org/docs/filtering.html

> By the way is it perfect to use url_for() to generate the action for the
> submission of the form?

Yes, it would be preferable to use url_for().
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
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