source: main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/batching.py @ 12501

Last change on this file since 12501 was 12499, checked in by Henrik Bettermann, 10 years ago

Add second batch of contract components which are so far a copy of the IRONContract components.

  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1## $Id: batching.py 12499 2015-01-20 08:31:25Z henrik $
2##
3## Copyright (C) 2014 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18"""Batch processing for pcn documents.
19"""
20import grok
21from waeup.ikoba.customers.batching import (
22    CustomerProcessor,
23    CustomerDocumentProcessorBase, ContractProcessorBase)
24from ikobacustom.pcn.customers.interfaces import (
25    IPCNCustomer,
26    IPCNCustomerJPGDocument,
27    IPCNCustomerPDFDocument,
28    IRONContract,
29    IROPContract)
30from ikobacustom.pcn.interfaces import MessageFactory as _
31
32
33class PCNCustomerProcessor(CustomerProcessor):
34    """A batch processor for ICustomer objects.
35    """
36    util_name = 'pcncustomerprocessor'
37    grok.name(util_name)
38    name = _('PCN Customer Processor')
39    iface = IPCNCustomer
40
41
42class PCNCustomerJPGDocumentProcessor(CustomerDocumentProcessorBase):
43    """A batch processor for IPCNCustomerJPGDocument objects.
44    """
45    util_name = 'pcncustomerjpgdocumentprocessor'
46    grok.name(util_name)
47    name = _('PCN Customer JPG Document Processor')
48    iface = IPCNCustomerJPGDocument
49    factory_name = 'waeup.PCNCustomerJPGDocument'
50
51class PCNCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase):
52    """A batch processor for IPCNCustomerPDFDocument objects.
53    """
54    util_name = 'pcncustomerpdfdocumentprocessor'
55    grok.name(util_name)
56    name = _('PCN Customer PDF Document Processor')
57    iface = IPCNCustomerPDFDocument
58    factory_name = 'waeup.PCNCustomerPDFDocument'
59
60class RONContractProcessor(ContractProcessorBase):
61    """A batch processor for IRONContract objects.
62    """
63    util_name = 'roncontractprocessor'
64    grok.name(util_name)
65    name = _('Retention of Name Contract Processor')
66    iface = IRONContract
67    factory_name = 'waeup.RONContract'
68
69class ROPContractProcessor(ContractProcessorBase):
70    """A batch processor for IROPContract objects.
71    """
72    util_name = 'ropcontractprocessor'
73    grok.name(util_name)
74    name = _('Registration of Premises Contract Processor')
75    iface = IROPContract
76    factory_name = 'waeup.ROPContract'
Note: See TracBrowser for help on using the repository browser.