#!/usr/bin/python # coding=UTF-8 # # BitCurator Access Webtools (Disk Image Access for the Web) # # This code is distributed under the terms of the GNU General Public # License, Version 3. See the text file "COPYING" for further details # about the terms of this license. # # This script starts the main application server. It is called by # the servstart.sh bash script (in the provision directory) which is # run each time the Vagrant machine is brought up. # from bcaw import app #from bcaw import bcaw_db #bcaw_db.bcawdb() app.debug=True app.run('0.0.0.0')
break offset += len(data) total_data = total_data+data #print "Length OF TOTAL DATA: ", len(total_data) mime = MimeTypes() mime_type, a = mime.guess_type(file_name) generator = (cell for row in total_data for cell in row) return Response(stream_with_context(generator), mimetype=mime_type, headers={"Content-Disposition": "attachment;filename=" + urllib.quote(file_name) }) #"attachment;filename=" + file_name }) ''' return render_template('fl_filecat_temp_ext.html', image_name=str(image_name), partition_num=image_partition, file_name=file_name, contents=str(data)) #contents = data.decode("utf-8")) ''' # FIXME: This is never called (since we run runserver.py) # Remove once confirmed to be deleted if __name__ == "__main__": dm = bcaw() bcaw_db.bcawdb() app.run()
#!/usr/bin/python # coding=UTF-8 # # BitCurator Access Webtools (Disk Image Access for the Web) # # This code is distributed under the terms of the GNU General Public # License, Version 3. See the text file "COPYING" for further details # about the terms of this license. # # This script starts the main application server. It is called by # the servstart.sh bash script (in the provision directory) which is # run each time the Vagrant machine is brought up. # from bcaw import app as application application.debug=True if __name__ == "__main__": application.run('0.0.0.0')