Fred C wrote:
> 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')
>   
If you want to show all the poll on a single page, a pair of nested
RepeatingFieldSets with a custom template should be enough..


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to