## $Id: batching.py 12401 2015-01-05 07:45:40Z henrik $ ## ## Copyright (C) 2011 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, IPCNLicenseContract) 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 PCNLicenseContractProcessor(ContractProcessorBase): """A batch processor for IPCNLicenseContract objects. """ util_name = 'pcnlicensecontractprocessor' grok.name(util_name) name = _('PCN Customer Contract Processor') iface = IPCNLicenseContract factory_name = 'waeup.PCNLicenseContract'