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

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

Rename PCNContract to emphasize that this contract deelas with licenses only.

  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[12286]1## $Id: batching.py 12401 2015-01-05 07:45:40Z henrik $
[12274]2##
3## Copyright (C) 2011 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##
[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,
[12401]28    IPCNLicenseContract)
[12371]29from ikobacustom.pcn.interfaces import MessageFactory as _
[12274]30
31
[12371]32class PCNCustomerProcessor(CustomerProcessor):
[12284]33    """A batch processor for ICustomer objects.
34    """
[12371]35    util_name = 'pcncustomerprocessor'
[12284]36    grok.name(util_name)
[12371]37    name = _('PCN Customer Processor')
38    iface = IPCNCustomer
[12284]39
40
[12384]41class PCNCustomerJPGDocumentProcessor(CustomerDocumentProcessorBase):
42    """A batch processor for IPCNCustomerJPGDocument objects.
[12274]43    """
[12384]44    util_name = 'pcncustomerjpgdocumentprocessor'
[12274]45    grok.name(util_name)
[12384]46    name = _('PCN Customer JPG Document Processor')
47    iface = IPCNCustomerJPGDocument
48    factory_name = 'waeup.PCNCustomerJPGDocument'
[12274]49
[12384]50class PCNCustomerPDFDocumentProcessor(CustomerDocumentProcessorBase):
51    """A batch processor for IPCNCustomerPDFDocument objects.
52    """
53    util_name = 'pcncustomerpdfdocumentprocessor'
54    grok.name(util_name)
55    name = _('PCN Customer PDF Document Processor')
56    iface = IPCNCustomerPDFDocument
57    factory_name = 'waeup.PCNCustomerPDFDocument'
[12274]58
[12401]59class PCNLicenseContractProcessor(ContractProcessorBase):
60    """A batch processor for IPCNLicenseContract objects.
[12274]61    """
[12401]62    util_name = 'pcnlicensecontractprocessor'
[12274]63    grok.name(util_name)
[12371]64    name = _('PCN Customer Contract Processor')
[12401]65    iface = IPCNLicenseContract
66    factory_name = 'waeup.PCNLicenseContract'
Note: See TracBrowser for help on using the repository browser.