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

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

Add 'Registration in the Provisional Register' contract.

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1## $Id: export.py 12571 2015-02-09 08:30:13Z 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)
29from ikobacustom.pcn.interfaces import MessageFactory as _
30
31class PCNCustomerExporter(CustomerExporter):
32    """Exporter for Customers.
33    """
34    iface = IPCNCustomer
35    title = _(u'PCN Customers')
36
37
38class PCNCustomerJPGDocumentExporter(CustomerDocumentExporterBase):
39    """Exporter for documents.
40    """
41    grok.name('pcncustomerjpgdocuments')
42    iface = IPCNCustomerJPGDocument
43    title = _(u'PCN Customer JPG Documents')
44    class_name = 'PCNCustomerJPGDocument'
45
46class PCNCustomerPDFDocumentExporter(CustomerDocumentExporterBase):
47    """Exporter for documents.
48    """
49    grok.name('pcncustomerpdfdocuments')
50    iface = IPCNCustomerPDFDocument
51    title = _(u'PCN Customer PDF Documents')
52    class_name = 'PCNCustomerPDFDocument'
53
54
55class RONContractExporter(ContractExporterBase):
56    """Exporter for Contract instances.
57    """
58    grok.name('roncontracts')
59    iface = IRONContractProcess
60    title = _(u'Retention of Name Contracts')
61    class_name = 'RONContract'
62
63
64class ROPContractExporter(ContractExporterBase):
65    """Exporter for Contract instances.
66    """
67    grok.name('ropcontracts')
68    iface = IROPContractProcess
69    title = _(u'Registration of Premises Contracts')
70    class_name = 'ROPContract'
71
72class RPRContractExporter(ContractExporterBase):
73    """Exporter for Contract instances.
74    """
75    grok.name('rprcontracts')
76    iface = IRPRContractProcess
77    title = _(u'Registration in the Provisional Register Contracts')
78    class_name = 'RPRContract'
Note: See TracBrowser for help on using the repository browser.