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

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

Add Annual Permit for Pharmacy Technician contract.

  • Property svn:keywords set to Id
File size: 5.0 KB
RevLine 
[12286]1## $Id: batching.py 12617 2015-02-14 17:22:51Z henrik $
[12274]2##
[12493]3## Copyright (C) 2014 Uli Fouquet & Henrik Bettermann
[12274]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##
[12371]18"""Batch processing for pcn documents.
[12274]19"""
20import grok
21from waeup.ikoba.customers.batching import (
[12284]22    CustomerProcessor,
23    CustomerDocumentProcessorBase, ContractProcessorBase)
[12371]24from ikobacustom.pcn.customers.interfaces import (
25    IPCNCustomer,
[12384]26    IPCNCustomerJPGDocument,
27    IPCNCustomerPDFDocument,
[12499]28    IRONContract,
[12571]29    IROPContract,
[12591]30    IRPRContract,
[12601]31    IRPCContract,
[12604]32    IIPPMVLContract,
[12611]33    IRPPMVLContract,
[12615]34    IAPPITContract,
[12617]35    IRPTContract,
36    IAPPTContract
[12611]37    )
[12371]38from ikobacustom.pcn.interfaces import MessageFactory as _
[12274]39
40
[12371]41class PCNCustomerProcessor(CustomerProcessor):
[12284]42    """A batch processor for ICustomer objects.
43    """
[12371]44    util_name = 'pcncustomerprocessor'
[12284]45    grok.name(util_name)
[12371]46    name = _('PCN Customer Processor')
47    iface = IPCNCustomer
[12284]48
49
[12384]50class PCNCustomerJPGDocumentProcessor(CustomerDocumentProcessorBase):
51    """A batch processor for IPCNCustomerJPGDocument objects.
[12274]52    """
[12384]53    util_name = 'pcncustomerjpgdocumentprocessor'
[12274]54    grok.name(util_name)
[12384]55    name = _('PCN Customer JPG Document Processor')
56    iface = IPCNCustomerJPGDocument
57    factory_name = 'waeup.PCNCustomerJPGDocument'
[12274]58
[12384]59class PCNCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase):
60    """A batch processor for IPCNCustomerPDFDocument objects.
61    """
62    util_name = 'pcncustomerpdfdocumentprocessor'
63    grok.name(util_name)
64    name = _('PCN Customer PDF Document Processor')
65    iface = IPCNCustomerPDFDocument
66    factory_name = 'waeup.PCNCustomerPDFDocument'
[12274]67
[12484]68class RONContractProcessor(ContractProcessorBase):
69    """A batch processor for IRONContract objects.
[12274]70    """
[12484]71    util_name = 'roncontractprocessor'
[12274]72    grok.name(util_name)
[12616]73    name = _('License Processor: Retention of Name')
[12484]74    iface = IRONContract
[12499]75    factory_name = 'waeup.RONContract'
76
77class ROPContractProcessor(ContractProcessorBase):
78    """A batch processor for IROPContract objects.
79    """
80    util_name = 'ropcontractprocessor'
81    grok.name(util_name)
[12616]82    name = _('License Processor: Registration of Premises')
[12499]83    iface = IROPContract
[12571]84    factory_name = 'waeup.ROPContract'
85
86class RPRContractProcessor(ContractProcessorBase):
87    """A batch processor for IRPRContract objects.
88    """
89    util_name = 'rprcontractprocessor'
90    grok.name(util_name)
[12616]91    name = _('License Processor: Registration in the Provisional Register')
[12571]92    iface = IRPRContract
[12591]93    factory_name = 'waeup.RPRContract'
94
95class RPCContractProcessor(ContractProcessorBase):
96    """A batch processor for IRPRContract objects.
97    """
98    util_name = 'rpccontractprocessor'
99    grok.name(util_name)
[12616]100    name = _('License Processor: Registration as Pharmaceutical Chemist')
[12591]101    iface = IRPCContract
[12601]102    factory_name = 'waeup.RPCContract'
103
104class IPPMVLContractProcessor(ContractProcessorBase):
105    """A batch processor for IIPPMVLContract objects.
106    """
107    util_name = 'ippmvlcontractprocessor'
108    grok.name(util_name)
[12616]109    name = _('License Processor: Issuance of Patent and Proprietary Medicines Vendors License')
[12601]110    iface = IIPPMVLContract
[12604]111    factory_name = 'waeup.IPPMVLContract'
112
113class RPPMVLContractProcessor(ContractProcessorBase):
114    """A batch processor for IRPPMVLContract objects.
115    """
116    util_name = 'rppmvlcontractprocessor'
117    grok.name(util_name)
[12616]118    name = _('License Processor: Renewal of Patent and Proprietary Medicines Vendors License')
[12604]119    iface = IRPPMVLContract
[12611]120    factory_name = 'waeup.RPPMVLContract'
121
122class APPITContractProcessor(ContractProcessorBase):
[12615]123    """A batch processor for IAPPITContract objects.
[12611]124    """
125    util_name = 'appitcontractprocessor'
126    grok.name(util_name)
[12616]127    name = _('License Processor: Accepting Pupil Pharmacist for Internship Training')
[12611]128    iface = IAPPITContract
[12615]129    factory_name = 'waeup.APPITContract'
130
131class RPTContractProcessor(ContractProcessorBase):
132    """A batch processor for IRPTContract objects.
133    """
134    util_name = 'rptcontractprocessor'
135    grok.name(util_name)
[12616]136    name = _('License Processor: Registration as a Pharmacy Technician')
[12615]137    iface = IRPTContract
[12617]138    factory_name = 'waeup.RPTContract'
139
140class APPTContractProcessor(ContractProcessorBase):
141    """A batch processor for IAPPTContract objects.
142    """
143    util_name = 'apptcontractprocessor'
144    grok.name(util_name)
145    name = _('License Processor: Annual Permit for Pharmacy Technician')
146    iface = IAPPTContract
147    factory_name = 'waeup.APPTContract'
Note: See TracBrowser for help on using the repository browser.