8 messages in com.googlegroups.pylons-discusswebhelpers
FromSent OnAttachments
Antipin Aleksei17 Apr 2007 04:04 
Christoph Haas17 Apr 2007 04:12 
Antipin Aleksei17 Apr 2007 04:18 
Shannon -jj Behrens17 Apr 2007 17:48 
Loucash19 Apr 2007 08:49 
Antipin Aleksei22 Apr 2007 02:43 
Mike Orr25 Apr 2007 08:12 
Antipin Aleksei25 Apr 2007 11:02 
Subject:webhelpers
From:Antipin Aleksei (Anti@public.gmane.org)
Date:04/17/2007 04:04:48 AM
List:com.googlegroups.pylons-discuss

Hi

I configured Pylons to be used with Mako. It works greate, but I can't make webhelpers work. In an inhereted template I had simple login form- it was rendered as I expected. Then I tried to switch to using webhelpers to generate the same form. But it doesn't work for me. I added to helpers.py from webhelpers.rails import *

But then I tried the following in my template:

+ <% h.text_field('email') %> <% h.url_for('index2') %> <% h.url_for(controller='index', action='login') %> +

I get only "++", no errors.

What should I do to get this code working. And can anyone tell is there any advantages of using webhelper for generating html instead of simple html code.

I am using pylons-0.9.6dev_r1956-py2.5.egg mako-0.1.5-py2.5.egg webhelpers-0.3-py2.5.egg

Thanks for your help.