## $Id: batching.py 12499 2015-01-20 08:31:25Z henrik $ ## ## Copyright (C) 2014 Uli Fouquet & Henrik Bettermann ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## """Batch processing for pcn documents. """ import grok from waeup.ikoba.customers.batching import ( CustomerProcessor, CustomerDocumentProcessorBase, ContractProcessorBase) from ikobacustom.pcn.customers.interfaces import ( IPCNCustomer, IPCNCustomerJPGDocument, IPCNCustomerPDFDocument, IRONContract, IROPContract) from ikobacustom.pcn.interfaces import MessageFactory as _ class PCNCustomerProcessor(CustomerProcessor): """A batch processor for ICustomer objects. """ util_name = 'pcncustomerprocessor' grok.name(util_name) name = _('PCN Customer Processor') iface = IPCNCustomer class PCNCustomerJPGDocumentProcessor(CustomerDocumentProcessorBase): """A batch processor for IPCNCustomerJPGDocument objects. """ util_name = 'pcncustomerjpgdocumentprocessor' grok.name(util_name) name = _('PCN Customer JPG Document Processor') iface = IPCNCustomerJPGDocument factory_name = 'waeup.PCNCustomerJPGDocument' class PCNCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase): """A batch processor for IPCNCustomerPDFDocument objects. """ util_name = 'pcncustomerpdfdocumentprocessor' grok.name(util_name) name = _('PCN Customer PDF Document Processor') iface = IPCNCustomerPDFDocument factory_name = 'waeup.PCNCustomerPDFDocument' class RONContractProcessor(ContractProcessorBase): """A batch processor for IRONContract objects. """ util_name = 'roncontractprocessor' grok.name(util_name) name = _('Retention of Name Contract Processor') iface = IRONContract factory_name = 'waeup.RONContract' class ROPContractProcessor(ContractProcessorBase): """A batch processor for IROPContract objects. """ util_name = 'ropcontractprocessor' grok.name(util_name) name = _('Registration of Premises Contract Processor') iface = IROPContract factory_name = 'waeup.ROPContract'