source: main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/export.py @ 12600

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

Add Registration as Pharmaceutical Chemist contract.

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1## $Id: export.py 12591 2015-02-11 10:44:28Z 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"""Exporters for pcn customer objects and subobjects.
19"""
20import grok
21from waeup.ikoba.customers.export import (
22    CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase)
23from ikobacustom.pcn.customers.interfaces import (
24    IPCNCustomer, IPCNCustomerJPGDocument,
25    IPCNCustomerPDFDocument,
26    IRONContractProcess,
27    IROPContractProcess,
28    IRPRContractProcess,
29    IRPCContractProcess)
30from ikobacustom.pcn.interfaces import MessageFactory as _
31
32class PCNCustomerExporter(CustomerExporter):
33    """Exporter for Customers.
34    """
35    iface = IPCNCustomer
36    title = _(u'PCN Customers')
37
38
39class PCNCustomerJPGDocumentExporter(CustomerDocumentExporterBase):
40    """Exporter for documents.
41    """
42    grok.name('pcncustomerjpgdocuments')
43    iface = IPCNCustomerJPGDocument
44    title = _(u'PCN Customer JPG Documents')
45    class_name = 'PCNCustomerJPGDocument'
46
47class PCNCustomerPDFDocumentExporter(CustomerDocumentExporterBase):
48    """Exporter for documents.
49    """
50    grok.name('pcncustomerpdfdocuments')
51    iface = IPCNCustomerPDFDocument
52    title = _(u'PCN Customer PDF Documents')
53    class_name = 'PCNCustomerPDFDocument'
54
55
56class RONContractExporter(ContractExporterBase):
57    """Exporter for Contract instances.
58    """
59    grok.name('roncontracts')
60    iface = IRONContractProcess
61    title = _(u'Retention of Name Contracts')
62    class_name = 'RONContract'
63
64
65class ROPContractExporter(ContractExporterBase):
66    """Exporter for Contract instances.
67    """
68    grok.name('ropcontracts')
69    iface = IROPContractProcess
70    title = _(u'Registration of Premises Contracts')
71    class_name = 'ROPContract'
72
73class RPRContractExporter(ContractExporterBase):
74    """Exporter for Contract instances.
75    """
76    grok.name('rprcontracts')
77    iface = IRPRContractProcess
78    title = _(u'Registration in the Provisional Register Contracts')
79    class_name = 'RPRContract'
80
81class RPCContractExporter(ContractExporterBase):
82    """Exporter for Contract instances.
83    """
84    grok.name('rpccontracts')
85    iface = IRPCContractProcess
86    title = _(u'Registration as Pharmaceutical Chemist Contracts')
87    class_name = 'RPCContract'
Note: See TracBrowser for help on using the repository browser.