Have you considered using Kid templates directly instead of using widgets? py:for is a good way to produce HTML content from a collection.
Barry ----- Original Message ---- From: Fred C <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, February 27, 2007 9:24:25 AM Subject: [TurboGears] Re: Widgets question On Feb 26, 2007, at 6:23 PM, Ian Wilson wrote: > > The forms have no general structure whatsoever ? > Are they just a question and then a variable number of potential > answers? The only structure I have is an a poll, a variable number of question and a variable number of answers. The database look lile that class Poll(SQLObject): created = DateTimeCol(default=datetime.now) active = IntCol(default=0) title = UnicodeCol(length=255) questions = MultipleJoin('Question') class Question(SQLObject): text = UnicodeCol(length=255) reponses = MultipleJoin('Answer') class answer(SQLObject): text = UnicodeCol(length=255) vote = IntCol() question = ForeignKey('Question') > > -Ian > > On 2/26/07, Fred C <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I have a poll system to develop and I need to create a form for each >> poll dynamicaly. I just have a series of quesitons and a series of >> potential answers for each questions stored into the database. >> >> I was wandering if there is somewhere an example of a form created >> dynamicaly. >> >> Thanks >> -fred- >> >> >>> >> > > > ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

