Changeset 9023 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 19 Jul 2012, 10:32:40 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/batchprocessing.txt
r8976 r9023 619 619 'users_zope.mgr.create.finished.csv', 'users_zope.mgr.csv'] 620 620 621 Processed (finished) Files 622 ========================== 623 624 >>> browser.open('http://localhost/app/datacenter/processed') 625 >>> '<a href="download?filename=finished/certificates_zope.mgr.csv">' in browser.contents 626 True 621 627 622 628 Log Files -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r9011 r9023 810 810 return 811 811 812 class DatacenterFinishedPage(KofaEditFormPage): 813 grok.context(IDataCenter) 814 grok.name('processed') 815 grok.require('waeup.manageDataCenter') 816 label = _(u'Processed Files') 817 pnav = 0 818 819 def update(self): 820 datatable.need() 821 return super(DatacenterFinishedPage, self).update() 822 812 823 class DatacenterUploadPage(KofaPage): 813 824 grok.context(IDataCenter) … … 898 909 899 910 def getFiles(self): 900 files = self.context.get Files(sort='date')911 files = self.context.getPendingFiles(sort='date') 901 912 for file in files: 902 913 name = file.name -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/datacenterpage.pt
r8366 r9023 21 21 </thead> 22 22 <tbody> 23 <tr tal:repeat="file context/get Files" class="gradeC">23 <tr tal:repeat="file context/getPendingFiles" class="gradeC"> 24 24 <td> 25 25 <input type="checkbox" name="val_id" -
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r8920 r9023 386 386 grok.require('waeup.manageDataCenter') 387 387 text = _('Edit settings') 388 grok.order(1) 388 389 389 390 class ManageFacultiesContainerActionButton(ManageActionButton): … … 458 459 text = _('Edit certificate course') 459 460 460 #461 # Add actions...462 #463 464 461 class AddUserActionButton(AddActionButton): 465 462 grok.require('waeup.manageUsers') … … 468 465 text = _('Add user') 469 466 470 # 471 # Actions with a 'browse' icon... 472 # 473 class BrowseActionButton(ActionButton): 474 grok.baseclass() 475 grok.context(IKofaObject) 476 grok.template('actionbutton') 477 grok.viewletmanager(ActionBar) 467 class BrowseDatacenterLogs(ActionButton): 468 grok.context(IDataCenter) 478 469 grok.require('waeup.manageDataCenter') 479 icon = 'actionicon_manage.png' # File must exist in static/480 target = '@@show' # link to this viewname.481 text = _('Show logs') # Text to display on the button482 483 class BrowseDatacenterLogs(BrowseActionButton):484 grok.context(IDataCenter)485 470 grok.view(DatacenterPage) 486 grok.order( 4)471 grok.order(2) 487 472 icon = 'actionicon_info.png' 488 473 target = '@@logs' 489 474 text = _('Show logs') 490 475 491 # 492 # Misc. buttons... 493 # 476 class UploadCSVButton(ActionButton): 477 grok.context(IDataCenter) 478 grok.view(DatacenterPage) 479 grok.require('waeup.manageDataCenter') 480 grok.order(3) 481 icon = 'actionicon_up.png' 482 target = '@@upload' 483 text = _('Upload CSV file') 484 494 485 class BatchOpButton(ActionButton): 495 486 grok.context(IDataCenter) 496 487 grok.view(DatacenterPage) 497 488 grok.require('waeup.importData') 498 grok.order( 6)489 grok.order(4) 499 490 icon = 'actionicon_gear.png' 500 491 target = '@@import1' 501 492 text = _('Batch processing') 502 493 503 class UploadCSVButton(ActionButton):494 class ExportCSVButton(ActionButton): 504 495 grok.context(IDataCenter) 505 496 grok.view(DatacenterPage) 506 497 grok.require('waeup.manageDataCenter') 507 498 grok.order(5) 508 icon = 'actionicon_up.png'509 target = '@@upload'510 text = _('Upload CSV file')511 512 class ExportCSVButton(ActionButton):513 grok.context(IDataCenter)514 grok.view(DatacenterPage)515 grok.require('waeup.manageDataCenter')516 grok.order(7)517 499 icon = 'actionicon_down.png' 518 500 target = '@@export' 519 501 text = _('Export CSV file') 502 503 class BrowseFinishedFiles(ActionButton): 504 grok.context(IDataCenter) 505 grok.require('waeup.manageDataCenter') 506 grok.view(DatacenterPage) 507 grok.order(6) 508 icon = 'actionicon_finished.png' 509 target = '@@processed' 510 text = _('Processed Files') 520 511 521 512 #
Note: See TracChangeset for help on using the changeset viewer.