From: Selwyn L. <sel...@ph...> - 2006-03-08 14:01:26
|
its surprising how my eyes and cortex play tricks on me... i read the subject as beer-making tool :) Andrew Booth wrote: >OK, the csv file is now a virtual file - there is no copy kept on the >server. You need manage permission to download the file. I have set the mime >type as suggested. There's an updated war file on bmbmac75.leeds.ac.uk > >Aggie > >-----Original Message----- >From: bod...@li... >[mailto:bod...@li...] On Behalf Of >Matthew Buckett >Sent: 07 March 2006 11:15 >To: bod...@li... >Subject: Re: [Bodington-developers] Bodington peer-marking tool > >Andrew Booth wrote: > > >>You can download the war file from: >> >>http://bmbmac75.leeds.ac.uk/bodington-quickstart.war >> >>IE6 seems to download it as a zip file, but you can just rename it to a >> >> >war > > >>file after it has downloaded. >> >>Drop it into Tomcat, log in as sysadmin, password sysadmin and then go to: >> >>http://localhost/bodington-quickstart/site/faculties/medicine/test/ >> >> > >Thanks Aggie. Looks nice. > >One quick comment, the exported marks look to be created as an uploaded >file which means that anyone with view permission to the resource can >download the final marks once they have been generated. > >The alternative is to use a a bs_generated_marks.csv and then output the >CSV from the Java to the output stream after doing a permission check. >This way you can limit it so that only people with review access can >only access the marks. Facility.sendVirtualFile() is the method that >deals with this. > >Also you might like to serve up the CSV file with a mime type of >something like: >resp.setContentType("text/comma-separated-values"); >resp.setHeader("Content-Disposition", > "attachment; filename=\"marks.csv\""); > >Other than that when are we going to see this in Bodington HEAD as it >looks really nice? > > > |