- Timestamp:
- 21 Dec 2014, 12:44:10 (10 years ago)
- Location:
- main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/batching.py
r12274 r12284 20 20 import grok 21 21 from waeup.ikoba.customers.batching import ( 22 CustomerDocumentProcessor, ContractProcessor) 22 CustomerProcessor, 23 CustomerDocumentProcessorBase, ContractProcessorBase) 23 24 from ikobacustom.skeleton.customers.interfaces import ( 25 ISkeletonCustomer, 24 26 ISkeletonCustomerDocument, ISkeletonContract) 25 27 from ikobacustom.skeleton.interfaces import MessageFactory as _ 26 28 27 29 28 class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessor): 30 class SkeletonCustomerProcessor(CustomerProcessor): 31 """A batch processor for ICustomer objects. 32 """ 33 util_name = 'skeletoncustomerprocessor' 34 grok.name(util_name) 35 name = _('Skeleton Customer Processor') 36 iface = ISkeletonCustomer 37 38 39 class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessorBase): 29 40 """A batch processor for ISkeletonCustomerDocument objects. 30 41 """ … … 36 47 37 48 38 class SkeletonContractProcessor(ContractProcessor ):49 class SkeletonContractProcessor(ContractProcessorBase): 39 50 """A batch processor for ISkeletonContract objects. 40 51 """ 41 52 util_name = 'skeletoncontractprocessor' 42 53 grok.name(util_name) 43 name = _('Skeleton C ontract Processor')54 name = _('Skeleton Customer Contract Processor') 44 55 iface = ISkeletonContract 45 56 factory_name = 'waeup.SkeletonContract' -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/export.py
r12282 r12284 26 26 from ikobacustom.skeleton.interfaces import MessageFactory as _ 27 27 28 EXPORTER_NAMES = ('customers', 'skeletoncustomerdocuments', 'skeletoncontracts') 28 29 29 30 class SkeletonCustomerExporter(CustomerExporter): … … 48 49 grok.name('skeletoncontracts') 49 50 iface = ISkeletonContract 50 title = _(u'Skeleton C ontracts')51 title = _(u'Skeleton Customer Contracts') 51 52 class_name = 'SkeletonContract' -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/products/batching.py
r12181 r12284 18 18 """Batch processing for skeleton products. 19 19 """ 20 import grok 20 21 from waeup.ikoba.products.batching import ProductProcessor 21 22 from ikobacustom.skeleton.products.interfaces import ISkeletonProduct … … 25 26 26 27 iface = ISkeletonProduct 27 28 #name = _('SkeletonProduct Processor') 28 name = _('Skeleton Product Processor') 29 util_name = 'skeletonproductprocessor' 30 grok.name(util_name) -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/utils/utils.py
r12175 r12284 21 21 import pytz 22 22 from waeup.ikoba.utils.utils import IkobaUtils, sorted_phone_prefixes 23 from ikobacustom.skeleton.customers.export import EXPORTER_NAMES as CUSTOMER_EXPORTER_NAMES 23 24 from ikobacustom.skeleton.interfaces import MessageFactory as _ 24 25 … … 48 49 } 49 50 51 EXPORTER_NAMES = CUSTOMER_EXPORTER_NAMES + ( 52 'pdfdocuments', 53 'htmldocuments', 54 'users', 55 'products') 56 57 BATCH_PROCESSOR_NAMES = ( 58 'skeletoncustomerprocessor', 59 'skeletoncustomerdocumentprocessor', 60 'skeletoncontractprocessor', 61 'skeletonproductprocessor', 62 'pdfdocumentprocessor', 63 'htmldocumentprocessor', 64 'userprocessor') 65 50 66 #: A function to return 51 67 @classmethod
Note: See TracChangeset for help on using the changeset viewer.