Ignore:
Timestamp:
21 Dec 2014, 12:44:10 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust skeleton package to changes made in base package.

Location:
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/batching.py

    r12274 r12284  
    2020import grok
    2121from waeup.ikoba.customers.batching import (
    22     CustomerDocumentProcessor, ContractProcessor)
     22    CustomerProcessor,
     23    CustomerDocumentProcessorBase, ContractProcessorBase)
    2324from ikobacustom.skeleton.customers.interfaces import (
     25    ISkeletonCustomer,
    2426    ISkeletonCustomerDocument, ISkeletonContract)
    2527from ikobacustom.skeleton.interfaces import MessageFactory as _
    2628
    2729
    28 class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessor):
     30class SkeletonCustomerProcessor(CustomerProcessor):
     31    """A batch processor for ICustomer objects.
     32    """
     33    util_name = 'skeletoncustomerprocessor'
     34    grok.name(util_name)
     35    name = _('Skeleton Customer Processor')
     36    iface = ISkeletonCustomer
     37
     38
     39class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessorBase):
    2940    """A batch processor for ISkeletonCustomerDocument objects.
    3041    """
     
    3647
    3748
    38 class SkeletonContractProcessor(ContractProcessor):
     49class SkeletonContractProcessor(ContractProcessorBase):
    3950    """A batch processor for ISkeletonContract objects.
    4051    """
    4152    util_name = 'skeletoncontractprocessor'
    4253    grok.name(util_name)
    43     name = _('Skeleton Contract Processor')
     54    name = _('Skeleton Customer Contract Processor')
    4455    iface = ISkeletonContract
    4556    factory_name = 'waeup.SkeletonContract'
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/export.py

    r12282 r12284  
    2626from ikobacustom.skeleton.interfaces import MessageFactory as _
    2727
     28EXPORTER_NAMES = ('customers', 'skeletoncustomerdocuments', 'skeletoncontracts')
    2829
    2930class SkeletonCustomerExporter(CustomerExporter):
     
    4849    grok.name('skeletoncontracts')
    4950    iface = ISkeletonContract
    50     title = _(u'Skeleton Contracts')
     51    title = _(u'Skeleton Customer Contracts')
    5152    class_name = 'SkeletonContract'
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/products/batching.py

    r12181 r12284  
    1818"""Batch processing for skeleton products.
    1919"""
     20import grok
    2021from waeup.ikoba.products.batching import ProductProcessor
    2122from ikobacustom.skeleton.products.interfaces import ISkeletonProduct
     
    2526
    2627    iface = ISkeletonProduct
    27 
    28     #name = _('SkeletonProduct Processor')
     28    name = _('Skeleton Product Processor')
     29    util_name = 'skeletonproductprocessor'
     30    grok.name(util_name)
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/utils/utils.py

    r12175 r12284  
    2121import pytz
    2222from waeup.ikoba.utils.utils import IkobaUtils, sorted_phone_prefixes
     23from ikobacustom.skeleton.customers.export import EXPORTER_NAMES as CUSTOMER_EXPORTER_NAMES
    2324from ikobacustom.skeleton.interfaces import MessageFactory as _
    2425
     
    4849        }
    4950
     51    EXPORTER_NAMES = CUSTOMER_EXPORTER_NAMES + (
     52        'pdfdocuments',
     53        'htmldocuments',
     54        'users',
     55        'products')
     56
     57    BATCH_PROCESSOR_NAMES = (
     58        'skeletoncustomerprocessor',
     59        'skeletoncustomerdocumentprocessor',
     60        'skeletoncontractprocessor',
     61        'skeletonproductprocessor',
     62        'pdfdocumentprocessor',
     63        'htmldocumentprocessor',
     64        'userprocessor')
     65
    5066    #: A function to return
    5167    @classmethod
Note: See TracChangeset for help on using the changeset viewer.