Changeset 13066 for main/waeup.ikoba/trunk/src
- Timestamp:
- 16 Jun 2015, 14:48:55 (9 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/__init__.py
r11949 r13066 1 1 import os 2 3 #from waeup.ikoba.browser.layout import (4 # IkobaPage, IkobaForm, IkobaLayout, IkobaDisplayFormPage, IkobaEditFormPage,5 # IkobaAddFormPage, NullValidator)6 #from waeup.ikoba.browser.pages import ContactAdminForm7 2 8 3 IMAGE_PATH = os.path.join( -
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py
r12804 r13066 166 166 grok.baseclass() 167 167 168 class IkobaForm(UtilityView,Form): 168 class IkobaPage(UtilityView,Page): 169 """A megrok.layout page with additional methods. 170 """ 171 grok.baseclass() 172 173 class IkobaFormPage(UtilityView,Form): 169 174 """A megrok.layout.Form with additional methods. 170 175 """ … … 172 177 173 178 def setUpWidgets(self,ignore_request=False): 174 super(IkobaForm ,self).setUpWidgets(ignore_request)179 super(IkobaFormPage,self).setUpWidgets(ignore_request) 175 180 # Width parameters will be overridden by Bootstrap 176 181 # so we have to set the css class 177 182 if self.widgets.get('body'): 178 183 self.widgets['body'].height = 10 179 180 class IkobaPage(UtilityView,Page):181 """A megrok.layout page with additional methods.182 """183 grok.baseclass()184 184 185 185 class IkobaDisplayFormPage(UtilityView,DisplayForm): -
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/pages.py
r12995 r13066 44 44 from waeup.ikoba.utils.helpers import html2dict 45 45 from waeup.ikoba.browser.layout import ( 46 IkobaPage, IkobaForm , IkobaEditFormPage, IkobaAddFormPage,46 IkobaPage, IkobaFormPage, IkobaEditFormPage, IkobaAddFormPage, 47 47 IkobaDisplayFormPage, NullValidator) 48 48 from waeup.ikoba.browser.interfaces import ( … … 361 361 # 362 362 363 class ContactAdminForm(IkobaForm ):363 class ContactAdminForm(IkobaFormPage): 364 364 grok.name('contactadmin') 365 365 #grok.context(ICompany) … … 1515 1515 return result 1516 1516 1517 class ChangePasswordRequestPage(IkobaForm ):1517 class ChangePasswordRequestPage(IkobaFormPage): 1518 1518 """Captcha'd page for all kind of users to request a password change. 1519 1519 """ -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12809 r13066 454 454 455 455 456 class CustomerActivate Page(UtilityView, grok.View):456 class CustomerActivateView(UtilityView, grok.View): 457 457 """ Activate customer account 458 458 """ … … 474 474 475 475 476 class CustomerDeactivate Page(UtilityView, grok.View):476 class CustomerDeactivateView(UtilityView, grok.View): 477 477 """ Deactivate customer account 478 478 """ … … 1054 1054 return 1055 1055 1056 class PDFDocumentsOverview Page(UtilityView, grok.View):1056 class PDFDocumentsOverviewSlip(UtilityView, grok.View): 1057 1057 """Deliver an overview slip. 1058 1058 """ … … 1111 1111 1112 1112 1113 class PDFDocumentSlip Page(UtilityView, grok.View):1113 class PDFDocumentSlip(UtilityView, grok.View): 1114 1114 """Deliver pdf file including metadata. 1115 1115 """ … … 1141 1141 1142 1142 1143 class PDFMergeDocumentSlip Page(PDFDocumentSlipPage):1143 class PDFMergeDocumentSlip(PDFDocumentSlip): 1144 1144 """Deliver pdf file including metadata. 1145 1145 """ … … 1583 1583 return 1584 1584 1585 class PDFContractsOverview Page(UtilityView, grok.View):1585 class PDFContractsOverviewSlip(UtilityView, grok.View): 1586 1586 """Deliver an overview slip. 1587 1587 """ … … 1641 1641 1642 1642 1643 class PDFContractSlip Page(UtilityView, grok.View):1643 class PDFContractSlip(UtilityView, grok.View): 1644 1644 """Deliver pdf file including metadata. 1645 1645 """ … … 1726 1726 1727 1727 1728 class PDFContractReceipt Page(UtilityView, grok.View):1728 class PDFContractReceiptSlip(UtilityView, grok.View): 1729 1729 """Deliver pdf file including metadata. 1730 1730 """ -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/fileviewlets.py
r12446 r13066 32 32 CustomerFilesUploadPage, 33 33 DocumentDisplayFormPage, DocumentManageFormPage, DocumentEditFormPage, 34 PDFDocumentSlip Page,)34 PDFDocumentSlip,) 35 35 36 36 grok.templatedir('browser_templates') … … 131 131 132 132 class SampleScanPDFSlip(SampleScanDisplay): 133 grok.view(PDFDocumentSlip Page)133 grok.view(PDFDocumentSlip) 134 134 135 135 … … 188 188 189 189 class PDFScanSlip(PDFScanDisplay): 190 grok.view(PDFDocumentSlip Page)190 grok.view(PDFDocumentSlip) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12825 r13066 550 550 logcontent = open(logfile).read() 551 551 self.assertTrue( 552 'zope.mgr - customers.browser.CustomerDeactivate Page- '552 'zope.mgr - customers.browser.CustomerDeactivateView - ' 553 553 'K1000000 - account deactivated' in logcontent) 554 554 self.assertTrue( 555 'zope.mgr - customers.browser.CustomerActivate Page- '555 'zope.mgr - customers.browser.CustomerActivateView - ' 556 556 'K1000000 - account activated' in logcontent) 557 557 -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser.py
r12457 r13066 39 39 from waeup.ikoba.browser.layout import ( 40 40 IkobaPage, IkobaEditFormPage, IkobaAddFormPage, IkobaDisplayFormPage, 41 IkobaForm,NullValidator, jsaction, action, UtilityView)41 NullValidator, jsaction, action, UtilityView) 42 42 from waeup.ikoba.widgets.datewidget import ( 43 43 FriendlyDateWidget, FriendlyDateDisplayWidget, -
main/waeup.ikoba/trunk/src/waeup/ikoba/products/browser.py
r12782 r13066 36 36 from waeup.ikoba.browser.layout import ( 37 37 IkobaPage, IkobaEditFormPage, IkobaAddFormPage, IkobaDisplayFormPage, 38 IkobaForm,NullValidator, jsaction, action, UtilityView)38 NullValidator, jsaction, action, UtilityView) 39 39 from waeup.ikoba.widgets.datewidget import ( 40 40 FriendlyDateWidget, FriendlyDateDisplayWidget,
Note: See TracChangeset for help on using the changeset viewer.