Michele Cella wrote: > Hi Robin, > > actually you can already do what you've requested, take a look here for > a project that mimics your approach, the StandardTextField is actually > a compound so you receive (and need to prepopulate it) a dict but I > have a small patch ready to commit (4 lines of code) that with 0.9a5 > will let you do exactly what you've requested. > > http://trac.turbogears.org/turbogears/attachment/wiki/SimpleWidgetForm/WeAreFlexible.tar.gz?format=raw > > Actually apart from the StandardTextField things are even easier than > in your dreams (if I can interpret your request in this way), also keep > in mind that you should not instantiate widget inside templates (as in > your example) but reuse the same instance across all requests since > widgets are stateless. > > Now I should really sleep, tomorrow I will commit the patch I mentioned > and update the package. >
Ok, patch in svn and 1.0 branch, new package here: http://trac.turbogears.org/turbogears/attachment/wiki/SimpleWidgetForm/WeAreFlexible-0.9a5.tar.gz?format=raw You need svn or 0.9a5 when it comes out to use it, anyway I suggest you can already take a look to grasp the difference between this one that doesn't use a CompoundFormField. I know we are lacking doc, I'm trying to write some (but it's difficult for me since I'm not a native english speaker) anyway I hope you appreciated the fact that even if you haven't discovered them we are already providing these features, maybe now you can give us a better score card. ;-) Ciao Michele --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

