Changeset 12371 for main/ikobacustom.pcn/trunk/src
- Timestamp:
- 3 Jan 2015, 07:38:07 (10 years ago)
- Location:
- main/ikobacustom.pcn/trunk
- Files:
-
- 34 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk
-
Property
svn:global-ignores
set to
bin
develop-eggs
parts
sources
var
-
Property
svn:global-ignores
set to
-
main/ikobacustom.pcn/trunk/src
-
Property
svn:global-ignores
set to
ikobacustom.pcn.egg-info
-
Property
svn:global-ignores
set to
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/configure.zcml
r12175 r12371 6 6 --> 7 7 <include package="waeup.ikoba" /> 8 <include package="ikobacustom. skeleton" file="locales.zcml" />8 <include package="ikobacustom.pcn" file="locales.zcml" /> 9 9 <grok:grok package="." /> 10 10 … … 14 14 zope.publisher.interfaces.browser.IBrowserRequest" 15 15 provides="zope.formlib.interfaces.ISimpleInputWidget" 16 factory="ikobacustom. skeleton.widgets.phonewidget.NigeriaPhoneWidget"16 factory="ikobacustom.pcn.widgets.phonewidget.NigeriaPhoneWidget" 17 17 permission="zope.Public" 18 18 /> -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/batching.py
r12286 r12371 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Batch processing for skeleton documents.18 """Batch processing for pcn documents. 19 19 """ 20 20 import grok … … 22 22 CustomerProcessor, 23 23 CustomerDocumentProcessorBase, ContractProcessorBase) 24 from ikobacustom. skeleton.customers.interfaces import (25 I SkeletonCustomer,26 I SkeletonCustomerDocument, ISkeletonContract)27 from ikobacustom. skeleton.interfaces import MessageFactory as _24 from ikobacustom.pcn.customers.interfaces import ( 25 IPCNCustomer, 26 IPCNCustomerDocument, IPCNContract) 27 from ikobacustom.pcn.interfaces import MessageFactory as _ 28 28 29 29 30 class SkeletonCustomerProcessor(CustomerProcessor):30 class PCNCustomerProcessor(CustomerProcessor): 31 31 """A batch processor for ICustomer objects. 32 32 """ 33 util_name = ' skeletoncustomerprocessor'33 util_name = 'pcncustomerprocessor' 34 34 grok.name(util_name) 35 name = _(' SkeletonCustomer Processor')36 iface = I SkeletonCustomer35 name = _('PCN Customer Processor') 36 iface = IPCNCustomer 37 37 38 38 39 class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessorBase):40 """A batch processor for I SkeletonCustomerDocument objects.39 class PCNCustomerDocumentProcessor(CustomerDocumentProcessorBase): 40 """A batch processor for IPCNCustomerDocument objects. 41 41 """ 42 util_name = ' skeletoncustomerdocumentprocessor'42 util_name = 'pcncustomerdocumentprocessor' 43 43 grok.name(util_name) 44 name = _(' SkeletonCustomer Document Processor')45 iface = I SkeletonCustomerDocument46 factory_name = 'waeup. SkeletonCustomerDocument'44 name = _('PCN Customer Document Processor') 45 iface = IPCNCustomerDocument 46 factory_name = 'waeup.PCNCustomerDocument' 47 47 48 48 49 class SkeletonContractProcessor(ContractProcessorBase):50 """A batch processor for I SkeletonContract objects.49 class PCNContractProcessor(ContractProcessorBase): 50 """A batch processor for IPCNContract objects. 51 51 """ 52 util_name = ' skeletoncontractprocessor'52 util_name = 'pcncontractprocessor' 53 53 grok.name(util_name) 54 name = _(' SkeletonCustomer Contract Processor')55 iface = I SkeletonContract56 factory_name = 'waeup. SkeletonContract'54 name = _('PCN Customer Contract Processor') 55 iface = IPCNContract 56 factory_name = 'waeup.PCNContract' -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/contracts.py
r12335 r12371 26 26 from waeup.ikoba.customers.interfaces import ICustomerNavigation 27 27 from waeup.ikoba.customers.contracts import ContractBase 28 from ikobacustom. skeleton.interfaces import MessageFactory as _29 from ikobacustom. skeleton.customers.interfaces import (30 I SkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess)28 from ikobacustom.pcn.interfaces import MessageFactory as _ 29 from ikobacustom.pcn.customers.interfaces import ( 30 IPCNContract, IPCNContractEdit, IPCNContractProcess) 31 31 32 32 33 class SkeletonContract(ContractBase):33 class PCNContract(ContractBase): 34 34 """This is a sample contract. 35 35 """ 36 36 37 37 grok.implements( 38 I SkeletonContractProcess,39 I SkeletonContract,40 I SkeletonContractEdit,38 IPCNContractProcess, 39 IPCNContract, 40 IPCNContractEdit, 41 41 ICustomerNavigation) 42 42 43 43 contract_category = 'sample' 44 44 45 form_fields_interface = I SkeletonContract45 form_fields_interface = IPCNContract 46 46 47 edit_form_fields_interface = I SkeletonContractEdit47 edit_form_fields_interface = IPCNContractEdit 48 48 49 check_docs_interface = I SkeletonContract49 check_docs_interface = IPCNContract 50 50 51 SkeletonContract = attrs_to_fields(SkeletonContract)51 PCNContract = attrs_to_fields(PCNContract) 52 52 53 53 54 54 # Contracts must be importable. So we might need a factory. 55 class SkeletonContractFactory(grok.GlobalUtility):55 class PCNContractFactory(grok.GlobalUtility): 56 56 """A factory for contracts. 57 57 """ 58 58 grok.implements(IFactory) 59 grok.name(u'waeup. SkeletonContract')59 grok.name(u'waeup.PCNContract') 60 60 title = u"Create a new contract.", 61 61 description = u"This factory instantiates new sample contract instances." 62 62 63 63 def __call__(self, *args, **kw): 64 return SkeletonContract(*args, **kw)64 return PCNContract(*args, **kw) 65 65 66 66 def getInterfaces(self): 67 return implementedBy( SkeletonContract)67 return implementedBy(PCNContract) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/customer.py
r12272 r12371 25 25 from waeup.ikoba.customers.customer import Customer 26 26 from waeup.ikoba.customers.interfaces import ICustomerNavigation 27 from ikobacustom. skeleton.customers.interfaces import ISkeletonCustomer28 from ikobacustom. skeleton.interfaces import MessageFactory as _27 from ikobacustom.pcn.customers.interfaces import IPCNCustomer 28 from ikobacustom.pcn.interfaces import MessageFactory as _ 29 29 30 30 31 class SkeletonCustomer(Customer):31 class PCNCustomer(Customer): 32 32 """This is a customer container for the various objects 33 33 owned by customers. 34 34 """ 35 grok.implements(I SkeletonCustomer, ICustomerNavigation)36 grok.provides(I SkeletonCustomer)35 grok.implements(IPCNCustomer, ICustomerNavigation) 36 grok.provides(IPCNCustomer) 37 37 38 SkeletonCustomer = attrs_to_fields(SkeletonCustomer)38 PCNCustomer = attrs_to_fields(PCNCustomer) 39 39 40 40 41 class SkeletonCustomerFactory(grok.GlobalUtility):41 class PCNCustomerFactory(grok.GlobalUtility): 42 42 """A factory for customers. 43 43 """ 44 44 grok.implements(IFactory) 45 45 grok.name(u'waeup.Customer') 46 title = u"Create a new skeleton customer.",47 description = u"This factory instantiates new skeleton customer instances."46 title = u"Create a new pcn customer.", 47 description = u"This factory instantiates new pcn customer instances." 48 48 49 49 def __call__(self, *args, **kw): 50 return SkeletonCustomer()50 return PCNCustomer() 51 51 52 52 def getInterfaces(self): 53 return implementedBy( SkeletonCustomer)53 return implementedBy(PCNCustomer) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/documents.py
r12355 r12371 25 25 from waeup.ikoba.customers.interfaces import ICustomerNavigation 26 26 from waeup.ikoba.customers.documents import CustomerDocumentBase 27 from ikobacustom. skeleton.interfaces import MessageFactory as _28 from ikobacustom. skeleton.customers.interfaces import ISkeletonCustomerDocument27 from ikobacustom.pcn.interfaces import MessageFactory as _ 28 from ikobacustom.pcn.customers.interfaces import IPCNCustomerDocument 29 29 30 30 31 class SkeletonCustomerDocument(CustomerDocumentBase):31 class PCNCustomerDocument(CustomerDocumentBase): 32 32 """This is a sample customer document. 33 33 """ 34 34 35 grok.implements(I SkeletonCustomerDocument, ICustomerNavigation)36 grok.provides(I SkeletonCustomerDocument)35 grok.implements(IPCNCustomerDocument, ICustomerNavigation) 36 grok.provides(IPCNCustomerDocument) 37 37 38 38 # Ikoba can store any number of files per Document object. … … 42 42 filenames = ('sample',) 43 43 44 form_fields_interface = I SkeletonCustomerDocument44 form_fields_interface = IPCNCustomerDocument 45 45 46 SkeletonCustomerDocument = attrs_to_fields(SkeletonCustomerDocument)46 PCNCustomerDocument = attrs_to_fields(PCNCustomerDocument) 47 47 48 48 49 49 # Customer documents must be importable. So we need a factory. 50 class SkeletonCustomerDocumentFactory(grok.GlobalUtility):50 class PCNCustomerDocumentFactory(grok.GlobalUtility): 51 51 """A factory for customer documents. 52 52 """ 53 53 grok.implements(IFactory) 54 grok.name(u'waeup. SkeletonCustomerDocument')54 grok.name(u'waeup.PCNCustomerDocument') 55 55 title = u"Create a new document.", 56 56 description = u"This factory instantiates new sample document instances." 57 57 58 58 def __call__(self, *args, **kw): 59 return SkeletonCustomerDocument(*args, **kw)59 return PCNCustomerDocument(*args, **kw) 60 60 61 61 def getInterfaces(self): 62 return implementedBy( SkeletonCustomerDocument)62 return implementedBy(PCNCustomerDocument) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/export.py
r12298 r12371 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Exporters for skeleton customer objects and subobjects.18 """Exporters for pcn customer objects and subobjects. 19 19 """ 20 20 import grok 21 21 from waeup.ikoba.customers.export import ( 22 22 CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase) 23 from ikobacustom. skeleton.customers.interfaces import (24 I SkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContract)25 from ikobacustom. skeleton.interfaces import MessageFactory as _23 from ikobacustom.pcn.customers.interfaces import ( 24 IPCNCustomer, IPCNCustomerDocument, IPCNContract) 25 from ikobacustom.pcn.interfaces import MessageFactory as _ 26 26 27 class SkeletonCustomerExporter(CustomerExporter):27 class PCNCustomerExporter(CustomerExporter): 28 28 """Exporter for Customers. 29 29 """ 30 iface = I SkeletonCustomer31 title = _(u' SkeletonCustomers')30 iface = IPCNCustomer 31 title = _(u'PCN Customers') 32 32 33 33 34 class SkeletonCustomerDocumentExporter(CustomerDocumentExporterBase):34 class PCNCustomerDocumentExporter(CustomerDocumentExporterBase): 35 35 """Exporter for documents. 36 36 """ 37 grok.name(' skeletoncustomerdocuments')38 iface = I SkeletonCustomerDocument39 title = _(u' SkeletonCustomer Documents')40 class_name = ' SkeletonCustomerDocument'37 grok.name('pcncustomerdocuments') 38 iface = IPCNCustomerDocument 39 title = _(u'PCN Customer Documents') 40 class_name = 'PCNCustomerDocument' 41 41 42 42 43 class SkeletonContractExporter(ContractExporterBase):43 class PCNContractExporter(ContractExporterBase): 44 44 """Exporter for Contract instances. 45 45 """ 46 grok.name(' skeletoncontracts')47 iface = I SkeletonContract48 title = _(u' SkeletonCustomer Contracts')49 class_name = ' SkeletonContract'46 grok.name('pcncontracts') 47 iface = IPCNContract 48 title = _(u'PCN Customer Contracts') 49 class_name = 'PCNContract' -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/fileviewlets.py
r12355 r12371 23 23 FileDisplay, FileUpload, Image) 24 24 25 from ikobacustom. skeleton.customers.documents import SkeletonCustomerDocument25 from ikobacustom.pcn.customers.documents import PCNCustomerDocument 26 26 27 27 from waeup.ikoba.customers.browser import ( … … 39 39 """ 40 40 grok.order(1) 41 grok.context( SkeletonCustomerDocument)41 grok.context(PCNCustomerDocument) 42 42 grok.view(DocumentManageFormPage) 43 43 grok.require('waeup.manageCustomer') … … 60 60 """ 61 61 grok.order(1) 62 grok.context( SkeletonCustomerDocument)62 grok.context(PCNCustomerDocument) 63 63 grok.require('waeup.viewCustomer') 64 64 grok.view(DocumentDisplayFormPage) … … 72 72 """ 73 73 grok.name('sample') 74 grok.context( SkeletonCustomerDocument)74 grok.context(PCNCustomerDocument) 75 75 grok.require('waeup.viewCustomer') 76 76 download_name = u'sample' … … 84 84 """ 85 85 grok.view(DocumentManageFormPage) 86 grok.context( SkeletonCustomerDocument)86 grok.context(PCNCustomerDocument) 87 87 grok.require('waeup.manageCustomer') 88 88 label = _(u'PDF File') … … 104 104 """ 105 105 grok.order(1) 106 grok.context( SkeletonCustomerDocument)106 grok.context(PCNCustomerDocument) 107 107 grok.require('waeup.viewCustomer') 108 108 grok.view(DocumentDisplayFormPage) … … 116 116 """ 117 117 grok.name('sample.pdf') 118 grok.context( SkeletonCustomerDocument)118 grok.context(PCNCustomerDocument) 119 119 grok.require('waeup.viewCustomer') 120 120 download_name = u'sample.pdf' -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/interfaces.py
r12335 r12371 23 23 ConCatProductSource, CustomerDocumentSource) 24 24 from waeup.ikoba.products.productoptions import ProductOptionField 25 from ikobacustom. skeleton.interfaces import MessageFactory as _25 from ikobacustom.pcn.interfaces import MessageFactory as _ 26 26 27 27 28 class I SkeletonCustomer(ICustomer):28 class IPCNCustomer(ICustomer): 29 29 """Representation of a customer. 30 30 … … 34 34 35 35 36 class I SkeletonCustomerDocument(ICustomerDocument):36 class IPCNCustomerDocument(ICustomerDocument): 37 37 """A customer document. 38 38 … … 41 41 # Customer contract interfaces 42 42 43 class I SkeletonContract(IContract):43 class IPCNContract(IContract): 44 44 """A customer contract sample with document attached. 45 45 … … 52 52 ) 53 53 54 class I SkeletonContractProcess(ISkeletonContract):54 class IPCNContractProcess(IPCNContract): 55 55 """Interface for processing contract data. 56 56 """ … … 64 64 ) 65 65 66 class I SkeletonContractEdit(ISkeletonContract):66 class IPCNContractEdit(IPCNContract): 67 67 """Interface for editing sample contract data by customers. 68 68 -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
r12369 r12371 30 30 from waeup.ikoba.customers.tests.test_batching import CustomerImportExportSetup 31 31 from waeup.ikoba.customers.tests.test_browser import CustomersFullSetup 32 from ikobacustom. skeleton.customers.export import (33 SkeletonCustomerExporter,34 SkeletonCustomerDocumentExporter,35 SkeletonContractExporter)36 from ikobacustom. skeleton.customers.batching import (37 SkeletonCustomerProcessor,38 SkeletonCustomerDocumentProcessor,39 SkeletonContractProcessor)40 from ikobacustom. skeleton.testing import FunctionalLayer, samples_dir32 from ikobacustom.pcn.customers.export import ( 33 PCNCustomerExporter, 34 PCNCustomerDocumentExporter, 35 PCNContractExporter) 36 from ikobacustom.pcn.customers.batching import ( 37 PCNCustomerProcessor, 38 PCNCustomerDocumentProcessor, 39 PCNContractProcessor) 40 from ikobacustom.pcn.testing import FunctionalLayer, samples_dir 41 41 42 42 SAMPLE_IMAGE = os.path.join(os.path.dirname(__file__), 'test_image.jpg') … … 56 56 IWorkflowState(customer).setState('started') 57 57 self.app['customers'].addCustomer(customer) 58 document = createObject(u'waeup. SkeletonCustomerDocument')58 document = createObject(u'waeup.PCNCustomerDocument') 59 59 document.title = u'My first document' 60 60 customer['documents'].addDocument(document) 61 contract = createObject(u'waeup. SkeletonContract')61 contract = createObject(u'waeup.PCNContract') 62 62 contract.tc_dict = {'en':u'Hello World'} 63 63 customer['contracts'].addContract(contract) … … 72 72 # set values we can expect in export file 73 73 self.setup_for_export() 74 exporter = SkeletonCustomerExporter()74 exporter = PCNCustomerExporter() 75 75 exporter.export_all(self.app, self.outfile) 76 76 result = open(self.outfile, 'rb').read() … … 80 80 'K1000000,,Beate,Mueller,,,123,f,0,,,started,[]\r\n') 81 81 # We can reimport the file ... 82 processor = SkeletonCustomerProcessor()82 processor = PCNCustomerProcessor() 83 83 result = processor.doImport( 84 84 self.outfile, … … 112 112 # set values we can expect in export file 113 113 self.setup_for_export() 114 exporter = SkeletonCustomerDocumentExporter()114 exporter = PCNCustomerDocumentExporter() 115 115 exporter.export_all(self.app, self.outfile) 116 116 result = open(self.outfile, 'rb').read() 117 117 self.assertMatches(result, 118 118 'class_name,document_id,history,state,title,user_id\r\n' 119 ' SkeletonCustomerDocument,%s,'119 'PCNCustomerDocument,%s,' 120 120 '[u\'2014-12-21 17:00:36 WAT - Document created by system\'],' 121 121 'created,My first document,K1000000\r\n' 122 122 % self.document.document_id) 123 123 # We can reimport the file if we change the header (user_id -> customer_id) 124 processor = SkeletonCustomerDocumentProcessor()124 processor = PCNCustomerDocumentProcessor() 125 125 open(self.outfile, 'wb').write( 126 126 'customer_id,class_name,document_id,state,title\r\n' 127 'K1000000, SkeletonCustomerDocument,%s,started,My first title\r\n'127 'K1000000,PCNCustomerDocument,%s,started,My first title\r\n' 128 128 % self.document.document_id) 129 129 result = processor.doImport( … … 156 156 # set values we can expect in export file 157 157 self.setup_for_export() 158 exporter = SkeletonContractExporter()158 exporter = PCNContractExporter() 159 159 exporter.export_all(self.app, self.outfile) 160 160 result = open(self.outfile, 'rb').read() … … 163 163 'history,last_product_id,product_object,product_options,' 164 164 'state,tc_dict,title,user_id\r\n' 165 ' SkeletonContract,sample,%s,,'165 'PCNContract,sample,%s,,' 166 166 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 167 167 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n' 168 168 % self.contract.contract_id) 169 169 # We can reimport the file if we change the header (user_id -> customer_id) 170 processor = SkeletonContractProcessor()170 processor = PCNContractProcessor() 171 171 open(self.outfile, 'wb').write( 172 172 'class_name,contract_category,contract_id,document_object,' 173 173 'history,last_product_id,product_object,product_options,' 174 174 'state,tc_dict,title,user_id\r\n' 175 ' SkeletonContract,sample,%s,,'175 'PCNContract,sample,%s,,' 176 176 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 177 177 ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n' … … 219 219 self.browser.open(self.customer_path + '/documents') 220 220 self.browser.getControl("Add document").click() 221 self.browser.getControl(name="doctype").value = [' SkeletonCustomerDocument']222 self.browser.getControl(name="form.title").value = 'My SkeletonDocument'221 self.browser.getControl(name="doctype").value = ['PCNCustomerDocument'] 222 self.browser.getControl(name="form.title").value = 'My PCN Document' 223 223 self.browser.getControl("Add document").click() 224 224 docid = [i for i in self.customer['documents'].keys() if len(i) > 10][0] -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_contract.py
r12292 r12371 28 28 from waeup.ikoba.customers.contracts import ContractsContainer 29 29 30 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)31 from ikobacustom. skeleton.customers.contracts import SkeletonContract32 from ikobacustom. skeleton.customers.interfaces import ISkeletonContract30 from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase) 31 from ikobacustom.pcn.customers.contracts import PCNContract 32 from ikobacustom.pcn.customers.interfaces import IPCNContract 33 33 34 34 … … 38 38 39 39 def test_interfaces(self): 40 verify.verifyClass(I SkeletonContract, SkeletonContract)41 verify.verifyClass(ICustomerNavigation, SkeletonContract)42 verify.verifyObject(I SkeletonContract, SkeletonContract())43 verify.verifyObject(ICustomerNavigation, SkeletonContract())40 verify.verifyClass(IPCNContract, PCNContract) 41 verify.verifyClass(ICustomerNavigation, PCNContract) 42 verify.verifyObject(IPCNContract, PCNContract()) 43 verify.verifyObject(ICustomerNavigation, PCNContract()) 44 44 return 45 45 46 46 def test_addContract(self): 47 47 container = ContractsContainer() 48 contract = createObject(u'waeup. SkeletonContract')48 contract = createObject(u'waeup.PCNContract') 49 49 id = contract.contract_id 50 50 container.addContract(contract) 51 51 self.assertEqual(container[id], contract) 52 52 self.assertRaises(TypeError, container.addContract, object()) 53 self.assertEqual(contract.class_name, ' SkeletonContract')53 self.assertEqual(contract.class_name, 'PCNContract') 54 54 return -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_customer.py
r12273 r12371 17 17 ## 18 18 """ 19 Tests for skeleton customers.19 Tests for pcn customers. 20 20 """ 21 21 import tempfile … … 30 30 from waeup.ikoba.customers.container import CustomersContainer 31 31 32 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)33 from ikobacustom. skeleton.customers.customer import SkeletonCustomer34 from ikobacustom. skeleton.customers.interfaces import ISkeletonCustomer32 from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase) 33 from ikobacustom.pcn.customers.customer import PCNCustomer 34 from ikobacustom.pcn.customers.interfaces import IPCNCustomer 35 35 36 class SkeletonCustomerTestCase(FunctionalTestCase):36 class PCNCustomerTestCase(FunctionalTestCase): 37 37 38 38 layer = FunctionalLayer 39 39 40 40 def setUp(self): 41 super( SkeletonCustomerTestCase, self).setUp()41 super(PCNCustomerTestCase, self).setUp() 42 42 43 43 # Prepopulate ZODB … … 52 52 53 53 def test_interfaces(self): 54 verify.verifyClass(I SkeletonCustomer, SkeletonCustomer)55 verify.verifyClass(ICustomerNavigation, SkeletonCustomer)56 verify.verifyObject(I SkeletonCustomer, SkeletonCustomer())57 verify.verifyObject(ICustomerNavigation, SkeletonCustomer())54 verify.verifyClass(IPCNCustomer, PCNCustomer) 55 verify.verifyClass(ICustomerNavigation, PCNCustomer) 56 verify.verifyObject(IPCNCustomer, PCNCustomer()) 57 verify.verifyObject(ICustomerNavigation, PCNCustomer()) 58 58 return 59 59 60 def test_add SkeletonCustomer(self):60 def test_addPCNCustomer(self): 61 61 customer = createObject(u'waeup.Customer') 62 verify.verifyObject(I SkeletonCustomer, customer)62 verify.verifyObject(IPCNCustomer, customer) 63 63 self.app['customers'].addCustomer(customer) 64 64 self.assertEqual(customer.customer_id, 'K1000000') … … 68 68 def tearDown(self): 69 69 shutil.rmtree(self.dc_root) 70 super( SkeletonCustomerTestCase, self).tearDown()70 super(PCNCustomerTestCase, self).tearDown() 71 71 return -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_document.py
r12292 r12371 28 28 from waeup.ikoba.customers.documents import CustomerDocumentsContainer 29 29 30 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)31 from ikobacustom. skeleton.customers.documents import SkeletonCustomerDocument32 from ikobacustom. skeleton.customers.interfaces import ISkeletonCustomerDocument30 from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase) 31 from ikobacustom.pcn.customers.documents import PCNCustomerDocument 32 from ikobacustom.pcn.customers.interfaces import IPCNCustomerDocument 33 33 34 34 … … 38 38 39 39 def test_interfaces(self): 40 verify.verifyClass(I SkeletonCustomerDocument, SkeletonCustomerDocument)41 verify.verifyClass(ICustomerNavigation, SkeletonCustomerDocument)42 verify.verifyObject(I SkeletonCustomerDocument, SkeletonCustomerDocument())43 verify.verifyObject(ICustomerNavigation, SkeletonCustomerDocument())40 verify.verifyClass(IPCNCustomerDocument, PCNCustomerDocument) 41 verify.verifyClass(ICustomerNavigation, PCNCustomerDocument) 42 verify.verifyObject(IPCNCustomerDocument, PCNCustomerDocument()) 43 verify.verifyObject(ICustomerNavigation, PCNCustomerDocument()) 44 44 return 45 45 46 46 def test_addDocument(self): 47 47 container = CustomerDocumentsContainer() 48 document = createObject(u'waeup. SkeletonCustomerDocument')48 document = createObject(u'waeup.PCNCustomerDocument') 49 49 id = document.document_id 50 50 container.addDocument(document) 51 51 self.assertEqual(container[id], document) 52 52 self.assertRaises(TypeError, container.addDocument, object()) 53 self.assertEqual(document.class_name, ' SkeletonCustomerDocument')53 self.assertEqual(document.class_name, 'PCNCustomerDocument') 54 54 return -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/utils.py
r12357 r12371 25 25 SUBMITTED, VERIFIED, REJECTED, 26 26 EXPIRED) 27 from ikobacustom. skeleton.interfaces import MessageFactory as _27 from ikobacustom.pcn.interfaces import MessageFactory as _ 28 28 29 class SkeletonCustomersUtils(CustomersUtils):29 class PCNCustomersUtils(CustomersUtils): 30 30 """A collection of methods subject to customization. 31 31 """ … … 47 47 #'CustomerPDFDocument': _('PDF Document'), 48 48 49 ' SkeletonCustomerDocument': _('SkeletonDocument'),49 'PCNCustomerDocument': _('PCN Document'), 50 50 } 51 51 … … 53 53 #'SampleContract': _('Sample Contract'), 54 54 55 ' SkeletonContract': _('SkeletonContract'),55 'PCNContract': _('PCN Contract'), 56 56 } 57 57 … … 62 62 EXPORTER_NAMES = ( 63 63 'customers', 64 ' skeletoncustomerdocuments',65 ' skeletoncontracts')64 'pcncustomerdocuments', 65 'pcncontracts') -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/__init__.py
r12269 r12371 2 2 """ 3 3 # Make this a package. 4 from ikobacustom. skeleton.documents.document import SkeletonDocument4 from ikobacustom.pcn.documents.document import PCNDocument 5 5 6 6 __all__ = [ 7 ' SkeletonDocument',7 'PCNDocument', 8 8 ] -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/batching.py
r12274 r12371 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Batch processing for skeleton documents.18 """Batch processing for pcn documents. 19 19 """ 20 20 import grok 21 21 from waeup.ikoba.documents.batching import DocumentProcessorBase 22 from ikobacustom. skeleton.documents.interfaces import ISkeletonDocument23 from ikobacustom. skeleton.interfaces import MessageFactory as _22 from ikobacustom.pcn.documents.interfaces import IPCNDocument 23 from ikobacustom.pcn.interfaces import MessageFactory as _ 24 24 25 25 26 class SkeletonDocumentProcessor(DocumentProcessorBase):27 """A batch processor for I SkeletonDocument objects.26 class PCNDocumentProcessor(DocumentProcessorBase): 27 """A batch processor for IPCNDocument objects. 28 28 """ 29 util_name = ' skeletondocumentprocessor'29 util_name = 'pcndocumentprocessor' 30 30 grok.name(util_name) 31 31 32 name = _(' SkeletonDocument Processor')33 iface = I SkeletonDocument32 name = _('PCN Document Processor') 33 iface = IPCNDocument 34 34 35 factory_name = 'waeup. SkeletonDocument'35 factory_name = 'waeup.PCNDocument' -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/document.py
r12270 r12371 24 24 from waeup.ikoba.utils.helpers import attrs_to_fields 25 25 from waeup.ikoba.documents.document import PublicDocumentBase 26 from ikobacustom. skeleton.documents.interfaces import ISkeletonDocument27 from ikobacustom. skeleton.interfaces import MessageFactory as _26 from ikobacustom.pcn.documents.interfaces import IPCNDocument 27 from ikobacustom.pcn.interfaces import MessageFactory as _ 28 28 29 29 30 class SkeletonDocument(PublicDocumentBase):30 class PCNDocument(PublicDocumentBase): 31 31 """This is a document. 32 32 """ 33 grok.implements(I SkeletonDocument)34 grok.provides(I SkeletonDocument)33 grok.implements(IPCNDocument) 34 grok.provides(IPCNDocument) 35 35 36 SkeletonDocument = attrs_to_fields(SkeletonDocument)36 PCNDocument = attrs_to_fields(PCNDocument) 37 37 38 38 39 class SkeletonDocumentFactory(grok.GlobalUtility):39 class PCNDocumentFactory(grok.GlobalUtility): 40 40 """A factory for documents. 41 41 """ 42 42 grok.implements(IFactory) 43 grok.name(u'waeup. SkeletonDocument')43 grok.name(u'waeup.PCNDocument') 44 44 title = u"Create a new document.", 45 description = u"This factory instantiates new skeleton documents."45 description = u"This factory instantiates new pcn documents." 46 46 47 47 def __call__(self, *args, **kw): 48 return SkeletonDocument(*args, **kw)48 return PCNDocument(*args, **kw) 49 49 50 50 def getInterfaces(self): 51 return implementedBy( SkeletonDocument)51 return implementedBy(PCNDocument) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/export.py
r12292 r12371 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Exporters for skeleton documents.18 """Exporters for pcn documents. 19 19 """ 20 20 import grok 21 21 from waeup.ikoba.documents.export import DocumentExporterBase 22 from ikobacustom. skeleton.documents.interfaces import ISkeletonDocument23 from ikobacustom. skeleton.interfaces import MessageFactory as _22 from ikobacustom.pcn.documents.interfaces import IPCNDocument 23 from ikobacustom.pcn.interfaces import MessageFactory as _ 24 24 25 25 26 class SkeletonDocumentExporter(DocumentExporterBase):26 class PCNDocumentExporter(DocumentExporterBase): 27 27 """Exporter for documents. 28 28 """ 29 grok.name(' skeletondocuments')30 iface = I SkeletonDocument31 class_name = ' SkeletonDocument'32 title = _(u' SkeletonDocuments')29 grok.name('pcndocuments') 30 iface = IPCNDocument 31 class_name = 'PCNDocument' 32 title = _(u'PCN Documents') -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/interfaces.py
r12292 r12371 17 17 ## 18 18 from waeup.ikoba.documents.interfaces import IPublicDocument 19 from ikobacustom. skeleton.interfaces import MessageFactory as _19 from ikobacustom.pcn.interfaces import MessageFactory as _ 20 20 21 21 22 class I SkeletonDocument(IPublicDocument):23 """A representation of a skeleton document.22 class IPCNDocument(IPublicDocument): 23 """A representation of a pcn document. 24 24 25 25 """ -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/tests/test_browser.py
r12290 r12371 27 27 from zope.interface.verify import verifyObject, verifyClass 28 28 from waeup.ikoba.documents.tests.test_batching import DocumentImportExportSetup 29 from ikobacustom. skeleton.documents.document import SkeletonDocument30 from ikobacustom. skeleton.documents.export import SkeletonDocumentExporter31 from ikobacustom. skeleton.documents.batching import SkeletonDocumentProcessor32 from ikobacustom. skeleton.testing import FunctionalLayer29 from ikobacustom.pcn.documents.document import PCNDocument 30 from ikobacustom.pcn.documents.export import PCNDocumentExporter 31 from ikobacustom.pcn.documents.batching import PCNDocumentProcessor 32 from ikobacustom.pcn.testing import FunctionalLayer 33 33 34 34 … … 38 38 39 39 def setup_for_export(self): 40 document = SkeletonDocument()40 document = PCNDocument() 41 41 document.document_id = u'DOC1' 42 42 document.title = u'My first document' … … 49 49 # set values we can expect in export file 50 50 self.setup_for_export() 51 exporter = SkeletonDocumentExporter()51 exporter = PCNDocumentExporter() 52 52 exporter.export_all(self.app, self.outfile) 53 53 result = open(self.outfile, 'rb').read() … … 55 55 'class_name,description,document_id,history,state,title,' 56 56 'users_with_local_roles\r\n' 57 ' SkeletonDocument,,DOC1,'57 'PCNDocument,,DOC1,' 58 58 '[u\'2014-12-21 23:27:15 WAT - Document created by system\'],' 59 59 'created,My first document,[]\r\n') 60 60 # We can import the same file. 61 processor = SkeletonDocumentProcessor()61 processor = PCNDocumentProcessor() 62 62 result = processor.doImport( 63 63 self.outfile, … … 79 79 self.assertEqual(num_fail,0) 80 80 # We can import the same file in update mode. 81 processor = SkeletonDocumentProcessor()81 processor = PCNDocumentProcessor() 82 82 result = processor.doImport( 83 83 self.outfile, -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/tests/test_document.py
r12292 r12371 17 17 ## 18 18 """ 19 Tests for skeleton documents.19 Tests for pcn documents. 20 20 """ 21 21 from zope.interface.verify import verifyClass, verifyObject … … 23 23 from waeup.ikoba.documents.container import DocumentsContainer 24 24 25 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)26 from ikobacustom. skeleton.documents.document import SkeletonDocument27 from ikobacustom. skeleton.documents.interfaces import ISkeletonDocument25 from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase) 26 from ikobacustom.pcn.documents.document import PCNDocument 27 from ikobacustom.pcn.documents.interfaces import IPCNDocument 28 28 29 class SkeletonDocumentTestCase(FunctionalTestCase):29 class PCNDocumentTestCase(FunctionalTestCase): 30 30 31 31 layer = FunctionalLayer … … 35 35 self.assertTrue( 36 36 verifyClass( 37 I SkeletonDocument, SkeletonDocument)37 IPCNDocument, PCNDocument) 38 38 ) 39 39 self.assertTrue( 40 40 verifyObject( 41 I SkeletonDocument, SkeletonDocument())41 IPCNDocument, PCNDocument()) 42 42 ) 43 43 return 44 44 45 def test_add SkeletonDocument(self):45 def test_addPCNDocument(self): 46 46 container = DocumentsContainer() 47 document = createObject(u'waeup. SkeletonDocument')47 document = createObject(u'waeup.PCNDocument') 48 48 document.document_id = u'DOC1' 49 49 container.addDocument(document) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/utils.py
r12292 r12371 19 19 """ 20 20 from waeup.ikoba.documents.utils import DocumentsUtils 21 from ikobacustom. skeleton.interfaces import MessageFactory as _21 from ikobacustom.pcn.interfaces import MessageFactory as _ 22 22 23 23 24 class SkeletonDocumentsUtils(DocumentsUtils):24 class PCNDocumentsUtils(DocumentsUtils): 25 25 """A collection of methods subject to customization. 26 26 """ … … 29 29 'PDFDocument': _('PDF Document'), 30 30 'HTMLDocument': _('HTML Document'), 31 ' SkeletonDocument': _('SkeletonDocument'),31 'PCNDocument': _('PCN Document'), 32 32 } 33 33 -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/ftesting.zcml
r12175 r12371 2 2 xmlns="http://namespaces.zope.org/zope" 3 3 xmlns:ikoba="http://namespaces.waeup.org/ikoba" 4 i18n_domain="ikobacustom. skeleton"5 package="ikobacustom. skeleton"4 i18n_domain="ikobacustom.pcn" 5 package="ikobacustom.pcn" 6 6 > 7 7 8 8 <include package="grok" /> 9 <includeOverrides package="ikobacustom. skeleton" />10 <include package="ikobacustom. skeleton" file="mail.zcml" />9 <includeOverrides package="ikobacustom.pcn" /> 10 <include package="ikobacustom.pcn" file="mail.zcml" /> 11 11 12 12 <!-- Where should the datacenter reside by default? -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/interfaces.py
r12176 r12371 20 20 from zope import schema 21 21 from zc.sourcefactory.basic import BasicSourceFactory 22 from ikobacustom. skeleton.utils.lgas import LGAS22 from ikobacustom.pcn.utils.lgas import LGAS 23 23 24 _ = MessageFactory = zope.i18nmessageid.MessageFactory('ikobacustom. skeleton')24 _ = MessageFactory = zope.i18nmessageid.MessageFactory('ikobacustom.pcn') 25 25 26 26 -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/__init__.py
r12177 r12371 2 2 """ 3 3 # Make this a package. 4 from ikobacustom. skeleton.products.product import SkeletonProduct4 from ikobacustom.pcn.products.product import PCNProduct 5 5 6 6 __all__ = [ 7 ' SkeletonProduct',7 'PCNProduct', 8 8 ] -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/batching.py
r12284 r12371 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Batch processing for skeleton products.18 """Batch processing for pcn products. 19 19 """ 20 20 import grok 21 21 from waeup.ikoba.products.batching import ProductProcessor 22 from ikobacustom. skeleton.products.interfaces import ISkeletonProduct23 from ikobacustom. skeleton.interfaces import MessageFactory as _22 from ikobacustom.pcn.products.interfaces import IPCNProduct 23 from ikobacustom.pcn.interfaces import MessageFactory as _ 24 24 25 class SkeletonProductProcessor(ProductProcessor):25 class PCNProductProcessor(ProductProcessor): 26 26 27 iface = I SkeletonProduct28 name = _(' SkeletonProduct Processor')29 util_name = ' skeletonproductprocessor'27 iface = IPCNProduct 28 name = _('PCN Product Processor') 29 util_name = 'pcnproductprocessor' 30 30 grok.name(util_name) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/export.py
r12270 r12371 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """Exporters for skeleton products.18 """Exporters for pcn products. 19 19 """ 20 20 import grok 21 21 from waeup.ikoba.utils.helpers import iface_names 22 22 from waeup.ikoba.products.export import ProductExporter 23 from ikobacustom. skeleton.products.interfaces import ISkeletonProduct24 from ikobacustom. skeleton.interfaces import MessageFactory as _23 from ikobacustom.pcn.products.interfaces import IPCNProduct 24 from ikobacustom.pcn.interfaces import MessageFactory as _ 25 25 26 26 27 class SkeletonProductExporter(ProductExporter):27 class PCNProductExporter(ProductExporter): 28 28 """Exporter for products. 29 29 """ 30 30 31 fields = tuple(sorted(iface_names(I SkeletonProduct))) + (31 fields = tuple(sorted(iface_names(IPCNProduct))) + ( 32 32 'users_with_local_roles',) 33 33 34 34 #: The title under which this exporter will be displayed 35 #title = _(u' SkeletonProducts')35 #title = _(u'PCN Products') -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/interfaces.py
r12292 r12371 17 17 ## 18 18 from waeup.ikoba.products.interfaces import IProduct 19 from ikobacustom. skeleton.interfaces import MessageFactory as _19 from ikobacustom.pcn.interfaces import MessageFactory as _ 20 20 21 21 22 class I SkeletonProduct(IProduct):23 """A representation of a skeleton product.22 class IPCNProduct(IProduct): 23 """A representation of a pcn product. 24 24 25 25 """ -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/product.py
r12270 r12371 24 24 from waeup.ikoba.utils.helpers import attrs_to_fields 25 25 from waeup.ikoba.products.product import Product 26 from ikobacustom. skeleton.products.interfaces import ISkeletonProduct27 from ikobacustom. skeleton.interfaces import MessageFactory as _26 from ikobacustom.pcn.products.interfaces import IPCNProduct 27 from ikobacustom.pcn.interfaces import MessageFactory as _ 28 28 29 29 30 class SkeletonProduct(Product):30 class PCNProduct(Product): 31 31 """This is a product. 32 32 """ 33 grok.implements(I SkeletonProduct)34 grok.provides(I SkeletonProduct)33 grok.implements(IPCNProduct) 34 grok.provides(IPCNProduct) 35 35 36 SkeletonProduct = attrs_to_fields(SkeletonProduct)36 PCNProduct = attrs_to_fields(PCNProduct) 37 37 38 38 39 class SkeletonProductFactory(grok.GlobalUtility):39 class PCNProductFactory(grok.GlobalUtility): 40 40 """A factory for products. 41 41 """ … … 43 43 grok.name(u'waeup.Product') 44 44 title = u"Create a new product.", 45 description = u"This factory instantiates new skeleton products."45 description = u"This factory instantiates new pcn products." 46 46 47 47 def __call__(self, *args, **kw): 48 return SkeletonProduct(*args, **kw)48 return PCNProduct(*args, **kw) 49 49 50 50 def getInterfaces(self): 51 return implementedBy( SkeletonProduct)51 return implementedBy(PCNProduct) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/tests/test_browser.py
r12367 r12371 27 27 from zope.interface.verify import verifyObject, verifyClass 28 28 from waeup.ikoba.products.tests.test_batching import ProductImportExportSetup 29 from ikobacustom. skeleton.products.product import SkeletonProduct30 from ikobacustom. skeleton.products.export import SkeletonProductExporter31 from ikobacustom. skeleton.products.batching import SkeletonProductProcessor32 from ikobacustom. skeleton.testing import FunctionalLayer29 from ikobacustom.pcn.products.product import PCNProduct 30 from ikobacustom.pcn.products.export import PCNProductExporter 31 from ikobacustom.pcn.products.batching import PCNProductProcessor 32 from ikobacustom.pcn.testing import FunctionalLayer 33 33 34 34 … … 38 38 39 39 def setup_for_export(self): 40 product = SkeletonProduct()40 product = PCNProduct() 41 41 product.product_id = u'LIC' 42 42 product.valid_from = datetime.date(2015, 12, 4) … … 49 49 # set values we can expect in export file 50 50 self.setup_for_export() 51 exporter = SkeletonProductExporter()51 exporter = PCNProductExporter() 52 52 exporter.export_all(self.app, self.outfile) 53 53 result = open(self.outfile, 'rb').read() … … 57 57 'license,,[],LIC,,Unnamed,2015-12-04#,,[]\r\n') 58 58 # We can import the same file. 59 processor = SkeletonProductProcessor()59 processor = PCNProductProcessor() 60 60 result = processor.doImport( 61 61 self.outfile, … … 77 77 self.assertEqual(num_fail,0) 78 78 # We can import the same file in update mode. 79 processor = SkeletonProductProcessor()79 processor = PCNProductProcessor() 80 80 result = processor.doImport( 81 81 self.outfile, -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/tests/test_product.py
r12177 r12371 17 17 ## 18 18 """ 19 Tests for skeleton products.19 Tests for pcn products. 20 20 """ 21 21 from zope.interface.verify import verifyClass, verifyObject … … 24 24 from waeup.ikoba.products.container import ProductsContainer 25 25 26 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)27 from ikobacustom. skeleton.products.product import SkeletonProduct28 from ikobacustom. skeleton.products.interfaces import ISkeletonProduct26 from ikobacustom.pcn.testing import (FunctionalLayer, FunctionalTestCase) 27 from ikobacustom.pcn.products.product import PCNProduct 28 from ikobacustom.pcn.products.interfaces import IPCNProduct 29 29 30 class SkeletonProductTestCase(FunctionalTestCase):30 class PCNProductTestCase(FunctionalTestCase): 31 31 32 32 layer = FunctionalLayer … … 36 36 self.assertTrue( 37 37 verifyClass( 38 I SkeletonProduct, SkeletonProduct)38 IPCNProduct, PCNProduct) 39 39 ) 40 40 self.assertTrue( 41 41 verifyObject( 42 I SkeletonProduct, SkeletonProduct())42 IPCNProduct, PCNProduct()) 43 43 ) 44 44 return 45 45 46 def test_add SkeletonProduct(self):46 def test_addPCNProduct(self): 47 47 container = ProductsContainer() 48 48 product = createObject(u'waeup.Product') -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/testing.py
r12369 r12371 20 20 import os 21 21 import tempfile 22 import ikobacustom. skeleton22 import ikobacustom.pcn 23 23 from zope.app.testing.functional import ZCMLLayer 24 24 from waeup.ikoba.testing import FunctionalTestCase 25 25 26 # Some funcional layer that groks ikobacustom. skeleton.26 # Some funcional layer that groks ikobacustom.pcn. 27 27 ftesting_zcml = os.path.join( 28 os.path.dirname(ikobacustom. skeleton.__file__), 'ftesting.zcml')28 os.path.dirname(ikobacustom.pcn.__file__), 'ftesting.zcml') 29 29 FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer', 30 30 allow_teardown=True) … … 34 34 # and return its path. 35 35 tmp_dir = os.path.join( 36 tempfile.gettempdir(), 'ikobacustom. skeleton.pdf-samples')36 tempfile.gettempdir(), 'ikobacustom.pcn.pdf-samples') 37 37 if not os.path.exists(tmp_dir): 38 38 os.mkdir(tmp_dir) -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/utils/utils.py
r12298 r12371 20 20 import pytz 21 21 from waeup.ikoba.utils.utils import IkobaUtils, sorted_phone_prefixes 22 from ikobacustom. skeleton.interfaces import MessageFactory as _22 from ikobacustom.pcn.interfaces import MessageFactory as _ 23 23 24 24 INT_PHONE_PREFIXES = [ … … 33 33 ] 34 34 35 class SkeletonIkobaUtils(IkobaUtils):35 class PCNIkobaUtils(IkobaUtils): 36 36 """A collection of methods subject to customization. 37 37 """ … … 53 53 'products', 54 54 'customers', 55 ' skeletoncustomerdocuments',56 ' skeletoncontracts')55 'pcncustomerdocuments', 56 'pcncontracts') 57 57 58 58 BATCH_PROCESSOR_NAMES = ( 59 ' skeletoncustomerprocessor',60 ' skeletoncustomerdocumentprocessor',61 ' skeletoncontractprocessor',62 ' skeletonproductprocessor',59 'pcncustomerprocessor', 60 'pcncustomerdocumentprocessor', 61 'pcncontractprocessor', 62 'pcnproductprocessor', 63 63 'pdfdocumentprocessor', 64 64 'htmldocumentprocessor',
Note: See TracChangeset for help on using the changeset viewer.