On Feb 27, 2007, at 9:43 AM, Marco Mariani wrote:
>
> 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
No, just pick one poll and display all the questions concerning that
poll.
> RepeatingFieldSets with a custom template should be enough..
I haven't try RepeatingFieldSets, I'am going to investigate in that
direction.
Thanks.
-fred-
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---