#NEWLINE# def mbtiles_mbtiles( self ) : #NEWLINE# #INDENT# '\n    Upload original mbtiles.\n    ' #NEWLINE# key = ( '%s.mbtiles' % self . tileset ) #NEWLINE# widgets = [ '- Uploading MBTile file: ' , progressbar . Percentage ( ) , ' ' , progressbar . Bar ( ) , ' ' , progressbar . ETA ( ) ] #NEWLINE# progress = progressbar . ProgressBar ( widgets = widgets , maxval = 1 ) . start ( ) #NEWLINE# def report_progress( complete , total ) : #NEWLINE# #INDENT# progress . update ( ( float ( complete ) / float ( total ) ) ) #NEWLINE# #UNINDENT# self . send_file ( key , file = self . source , cb = report_progress , mime_type = key . mime_mbtiles ) #NEWLINE# progress . finish ( )