Changeset 12207 for main/waeup.ikoba/trunk/src/waeup/ikoba
- Timestamp:
- 13 Dec 2014, 07:30:38 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/app.py
r12098 r12207 34 34 from waeup.ikoba.customers.container import CustomersContainer 35 35 from waeup.ikoba.products.container import ProductsContainer 36 from waeup.ikoba.documents.container import DocumentsContainer 36 37 37 38 … … 107 108 self['customers'] = CustomersContainer() 108 109 self['products'] = ProductsContainer() 110 self['documents'] = DocumentsContainer() 109 111 self._createPlugins() 110 112 -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12196 r12207 826 826 self.assertEqual(self.browser.url, self.customer_path) 827 827 self.browser.open(self.customer_path) 828 self.browser.getLink("Documents" ).click()828 self.browser.getLink("Documents", index=1).click() 829 829 self.browser.getLink("Add document").click() 830 830 self.browser.getControl(name="doctype").value = ['CustomerPDFDocument'] … … 865 865 866 866 # Documents can be removed 867 self.browser.getLink("Documents" ).click()867 self.browser.getLink("Documents", index=1).click() 868 868 ctrl = self.browser.getControl(name='val_id') 869 869 ctrl.getControl(value=document.document_id).selected = True -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/container.py
r12005 r12207 21 21 import grok 22 22 from grok import index 23 from waeup.ikoba.interfaces import IIkobaPluggable 23 24 from waeup.ikoba.documents.interfaces import IDocumentsContainer, IDocument 24 25 from waeup.ikoba.utils.helpers import attrs_to_fields … … 39 40 40 41 DocumentsContainer = attrs_to_fields(DocumentsContainer) 42 43 class DocumentsPlugin(grok.GlobalUtility): 44 """A plugin that creates container for documents inside a company. 45 """ 46 grok.implements(IIkobaPluggable) 47 grok.name('documents') 48 49 def setup(self, site, name, logger): 50 if 'documents' in site.keys(): 51 logger.warn('Could not create container for documents.') 52 return 53 site['documents'] = DocumentsContainer() 54 logger.info('Container for documents created') 55 return 56 57 def update(self, site, name, logger): 58 if not 'documents' in site.keys(): 59 self.setup(site, name, logger) -
main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.py
r12097 r12207 132 132 'waeup.manageUsers', 133 133 'waeup.viewProducts', 'waeup.manageProducts', 134 'waeup.viewDocuments', 'waeup.manageDocuments', 134 135 'waeup.manageDataCenter', 135 136 'waeup.importData', … … 157 158 #'waeup.manageUsers', 158 159 'waeup.viewProducts', 'waeup.manageProducts', 160 'waeup.viewDocuments', 'waeup.manageDocuments', 159 161 #'waeup.manageACBatches', 160 162 'waeup.manageDataCenter', -
main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.txt
r12068 r12207 39 39 >>> from waeup.ikoba.permissions import get_waeup_roles 40 40 >>> len(list(get_waeup_roles())) 41 1 341 15 42 42 43 43 >>> len(list(get_waeup_roles(also_local=True))) 44 1 644 19 45 45 46 46 … … 58 58 u'waeup.CustomersOfficer', 59 59 u'waeup.DataCenterManager', 60 u'waeup.DocumentsManager', 61 u'waeup.DocumentsOfficer', 60 62 u'waeup.ExportManager', 61 63 u'waeup.ImportManager',
Note: See TracChangeset for help on using the changeset viewer.