On Mon, Sep 04, 2006 at 10:46:06AM -0400, Kevin Dangoor wrote: > > On Sep 4, 2006, at 3:22 AM, Timur Izhbulatov wrote: > > > I'm porting my existing project to TG. The project uses Cheetah for > > dynamic form > > generation. For instance, my template is responsible for rendering > > required > > fields with an asterisk, plus some JavaScript checks. > > > > On this evidence I would like to use > > formencode.htmlfill_schemabuilder to > > generate embedded validation schema (it's very simple) along with > > the form > > itself (like in Subway). But I couldn't find any way to do this > > straight away. > > You could try implementing your own template engine (it's a pretty > simple interface) which does the Cheetah+schemabuilder work for you.
You mean http://www.turbogears.org/docs/plugins/template.html? I took a look at the interface and the TurboCheetah plugin code as example. Well, looks like it's possible to do the schema work somewhere in load_module. But how will I use the resulting schema for validation after that? I will need to make it available in the controller somehow. -- Timur Izhbulatov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:[EMAIL PROTECTED] Building Successful Supply Chains - One Solution At A Time. www.oilspace.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears -~----------~----~----~----~------~----~------~--~---

