Changeset 9074 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 28 Jul 2012, 04:47:58 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r9038 r9074 920 920 'Content-Type', 'text/csv; charset=UTF-8') 921 921 self.response.setHeader( 922 'Content-Disposition:', 'attachment; filename="%s .csv' %923 self.filename.replace(' .csv',''))922 'Content-Disposition:', 'attachment; filename="%s' % 923 self.filename.replace('finished/','')) 924 924 fullpath = os.path.join(self.context.storage, self.filename) 925 925 return open(fullpath, 'rb').read() -
main/waeup.kofa/trunk/src/waeup/kofa/browser/static/datatable.js
r7811 r9074 1 1 $(document).ready(function(){ 2 $('.dataTable').dataTable(); 2 $('.dataTable').dataTable(); 3 4 $('.dataTableFiles').dataTable( { 5 "aaSorting": [[ 2, "desc" ]], 6 } ); 7 3 8 $('.dataTableManage').dataTable( { 4 9 "aaSorting": [[ 1, "asc" ]], 5 10 "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }] 6 11 } ); 12 13 $('.dataTableManageFiles').dataTable( { 14 "aaSorting": [[ 3, "desc" ]], 15 "aoColumnDefs":[{ "bSortable": false, "aTargets": [ 0 ] }] 16 } ); 17 18 7 19 }); 8 20 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/datacenterfinishedpage.pt
r9023 r9074 1 <table i18n:domain="waeup.kofa" class="display dataTable ">1 <table i18n:domain="waeup.kofa" class="display dataTableFiles"> 2 2 <thead> 3 3 <tr> -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/datacenterpage.pt
r9023 r9074 11 11 <form action="." tal:attributes="action request/URL" method="post" 12 12 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 13 <table i18n:domain="waeup.kofa" class="display dataTableManage ">13 <table i18n:domain="waeup.kofa" class="display dataTableManageFiles"> 14 14 <thead> 15 15 <tr> -
main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py
r9023 r9074 87 87 return result 88 88 89 def getFinishedFiles(self , sort='name'):89 def getFinishedFiles(self): 90 90 """Get a list of files stored in `finished` subfolder of `storage`. 91 91 92 Files are sorted by basename.92 Files are unsorted. 93 93 """ 94 94 result = [] … … 103 103 continue 104 104 result.append(DataCenterFile(fullpath, 'finished')) 105 if sort == 'date':106 # sort results in newest-first order...107 result = sorted(result, key=lambda x: x.getTimeStamp(),108 reverse=True)109 105 return result 110 106 -
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r9023 r9074 645 645 """ 646 646 647 def getFinishedFiles(sort='name'): 648 """Get a list of files stored in `finished` subfolder of `storage` 649 sorted by basename. 647 def getFinishedFiles(): 648 """Get a list of files stored in `finished` subfolder of `storage`. 650 649 """ 651 650
Note: See TracChangeset for help on using the changeset viewer.