On Sun, Sep 27, 2009 at 11:54 PM, Krishnakant <[email protected]> wrote: > > > hello all, > I would like to know if I can use formbuild and webhelpers together? > for example in the form() can I use the h.url_for() to provide the > action? > further more, I was reading off late that the @validate function does > not work well when validating a from built with toscawidgets. Will the > same thing happen with formbuild?
Not many people here are familiar with FormBuild, so you're probably on your own there. I believe FormBuild prepares a form, which you then insert into your Mako template. In that case, you can use url() or h.url_for() in the template. (url() is newer and is gradually replacing the latter.) And anywhere you can enter Python code, you can "from pylons import url" or "import myapp.lib.helpers as h" and use them. Alternatives to FormBuild include WebHelpers form tags, ToscaWidgets, FormAlchemy, etc. -- Mike Orr <[email protected]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
