1 | ## $Id: batching.py 12269 2014-12-20 16:12:59Z henrik $ |
---|
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 | ## |
---|
18 | """Batch processing for skeleton documents. |
---|
19 | """ |
---|
20 | import grok |
---|
21 | from waeup.ikoba.customers.batching import ( |
---|
22 | CustomerDocumentProcessor, ContractProcessor) |
---|
23 | from ikobacustom.skeleton.customers.interfaces import ( |
---|
24 | ISkeletonCustomerDocument, ISkeletonContract) |
---|
25 | from ikobacustom.skeleton.interfaces import MessageFactory as _ |
---|
26 | |
---|
27 | |
---|
28 | class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessor): |
---|
29 | """A batch processor for ISkeletonCustomerDocument objects. |
---|
30 | """ |
---|
31 | util_name = 'skeletoncustomerdocumentprocessor' |
---|
32 | grok.name(util_name) |
---|
33 | name = _('Skeleton Customer Document Processor') |
---|
34 | iface = ISkeletonCustomerDocument |
---|
35 | factory_name = 'waeup.SkeletonCustomerDocument' |
---|
36 | |
---|
37 | |
---|
38 | class SkeletonContractProcessor(ContractProcessor): |
---|
39 | """A batch processor for ISkeletonContract objects. |
---|
40 | """ |
---|
41 | util_name = 'skeletoncontractprocessor' |
---|
42 | grok.name(util_name) |
---|
43 | name = _('Skeleton Contract Processor') |
---|
44 | iface = ISkeletonContract |
---|
45 | factory_name = 'waeup.SkeletonContract' |
---|