## Controller Python Script "cours_listing_competences"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##

request = context.REQUEST

listing = context.telechargerListingCompetences()

request.RESPONSE.setHeader('content-type', 'application/vnd.ms-excel')
request.RESPONSE.setHeader('content-length', listing["length"])
request.RESPONSE.setHeader('Content-Disposition',' attachment; filename=ListingCompetences%s.xls' % DateTime().Date())

#request.RESPONSE.redirect("%s/cours_boite_view?menu=competences" % context.absolute_url())

return listing["data"]