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

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

Add Accepting Pupil Pharmacist for Internship Training contract.

  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1## $Id: batching.py 12611 2015-02-13 10:15:44Z 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,
30    IRPRContract,
31    IRPCContract,
32    IIPPMVLContract,
33    IRPPMVLContract,
34    IAPPITContract
35    )
36from ikobacustom.pcn.interfaces import MessageFactory as _
37
38
39class PCNCustomerProcessor(CustomerProcessor):
40    """A batch processor for ICustomer objects.
41    """
42    util_name = 'pcncustomerprocessor'
43    grok.name(util_name)
44    name = _('PCN Customer Processor')
45    iface = IPCNCustomer
46
47
48class PCNCustomerJPGDocumentProcessor(CustomerDocumentProcessorBase):
49    """A batch processor for IPCNCustomerJPGDocument objects.
50    """
51    util_name = 'pcncustomerjpgdocumentprocessor'
52    grok.name(util_name)
53    name = _('PCN Customer JPG Document Processor')
54    iface = IPCNCustomerJPGDocument
55    factory_name = 'waeup.PCNCustomerJPGDocument'
56
57class PCNCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase):
58    """A batch processor for IPCNCustomerPDFDocument objects.
59    """
60    util_name = 'pcncustomerpdfdocumentprocessor'
61    grok.name(util_name)
62    name = _('PCN Customer PDF Document Processor')
63    iface = IPCNCustomerPDFDocument
64    factory_name = 'waeup.PCNCustomerPDFDocument'
65
66class RONContractProcessor(ContractProcessorBase):
67    """A batch processor for IRONContract objects.
68    """
69    util_name = 'roncontractprocessor'
70    grok.name(util_name)
71    name = _('Retention of Name Contract Processor')
72    iface = IRONContract
73    factory_name = 'waeup.RONContract'
74
75class ROPContractProcessor(ContractProcessorBase):
76    """A batch processor for IROPContract objects.
77    """
78    util_name = 'ropcontractprocessor'
79    grok.name(util_name)
80    name = _('Registration of Premises Contract Processor')
81    iface = IROPContract
82    factory_name = 'waeup.ROPContract'
83
84class RPRContractProcessor(ContractProcessorBase):
85    """A batch processor for IRPRContract objects.
86    """
87    util_name = 'rprcontractprocessor'
88    grok.name(util_name)
89    name = _('Registration in the Provisional Register Contract Processor')
90    iface = IRPRContract
91    factory_name = 'waeup.RPRContract'
92
93class RPCContractProcessor(ContractProcessorBase):
94    """A batch processor for IRPRContract objects.
95    """
96    util_name = 'rpccontractprocessor'
97    grok.name(util_name)
98    name = _('Registration as Pharmaceutical Chemist Contract Processor')
99    iface = IRPCContract
100    factory_name = 'waeup.RPCContract'
101
102class IPPMVLContractProcessor(ContractProcessorBase):
103    """A batch processor for IIPPMVLContract objects.
104    """
105    util_name = 'ippmvlcontractprocessor'
106    grok.name(util_name)
107    name = _('Issuance of Patent and Proprietary Medicines Vendors License (Contract) Processor')
108    iface = IIPPMVLContract
109    factory_name = 'waeup.IPPMVLContract'
110
111class RPPMVLContractProcessor(ContractProcessorBase):
112    """A batch processor for IRPPMVLContract objects.
113    """
114    util_name = 'rppmvlcontractprocessor'
115    grok.name(util_name)
116    name = _('Renewal of Patent and Proprietary Medicines Vendors License (Contract) Processor')
117    iface = IRPPMVLContract
118    factory_name = 'waeup.RPPMVLContract'
119
120class APPITContractProcessor(ContractProcessorBase):
121    """A batch processor for IRPPMVLContract objects.
122    """
123    util_name = 'appitcontractprocessor'
124    grok.name(util_name)
125    name = _('Accepting Pupil Pharmacist for Internship Training (Contract) Processor')
126    iface = IAPPITContract
127    factory_name = 'waeup.APPITContract'
Note: See TracBrowser for help on using the repository browser.