from Web.Sync import srend

class listtalks(srend.CapsPage):
    """ Make a page with all the talks of the user. Later, add the
    user biography, and the possibility of changing it"""
    
    def __init__(self, *args, **kwargs):
        srend.CapsPage.__init__(self, *args, **kwargs)

    def sdata_talks(self, context, data):
        """ Called from the HTML form from
        <nevow:invisible nevow:data="talks"/>
        """

        conference = services.findObjects(
            'CAPSconference.Conference', title=u'Europython 2005')

        return services.findObjects(
            'CAPSconference.Presentation', conference=conference)

