Changeset 14310


Ignore:
Timestamp:
5 Dec 2016, 09:14:32 (8 years ago)
Author:
Henrik Bettermann
Message:

Renaming and port setting.

Location:
main/ikobacustom.aaue/trunk
Files:
40 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.aaue/trunk/README.txt

    r13790 r14310  
    1 ikobacustom.skeleton
    2 ********************
     1ikobacustom.aaue
     2****************
    33
    44Customizations of the `waeup.ikoba` package.
     
    1212  (py27)$ ./bin/buildout -c buildout-init.cfg
    1313
    14   (py27)$ python bootstrap.py
    15 
    1614  (py27)$ ./bin/buildout
  • main/ikobacustom.aaue/trunk/buildout.cfg

    r12304 r14310  
    5050host = 0.0.0.0
    5151# default is 8080
    52 base_port = 8080
    53 zeo1_port = 8080
    54 zeo2_port = 8081
    55 zeo3_port = 8082
    56 server_port = 8100
     52base_port = 7161
     53zeo1_port = 7161
     54zeo2_port = 7162
     55zeo3_port = 7163
     56server_port = 7160
    5757# default 7. Number of pre-opened ZODB threads/client
    5858pool_size = 7
     
    6363# number of preopened paster threads, default 10
    6464threadpool_workers = 10
    65 devel_pkg = ikobacustom.skeleton
     65devel_pkg = ikobacustom.aaue
    6666
    6767[app]
    6868# This creates all scripts in bin/. The ikobactl created here is 'faulty'.
    6969recipe = zc.recipe.egg
    70 eggs = ikobacustom.skeleton [beaker, diazo]
     70eggs = ikobacustom.aaue [beaker, diazo]
    7171       z3c.evalexception>=2.0
    7272       Paste
     
    8282# fixed path to zdaemon.conf as argument.
    8383recipe = zc.recipe.egg
    84 eggs = ikobacustom.skeleton [beaker, diazo]
     84eggs = ikobacustom.aaue [beaker, diazo]
    8585       waeup.ikoba
    8686arguments = "${buildout:parts-directory}/etc/zdaemon.conf"
     
    101101[test]
    102102recipe = zc.recipe.testrunner
    103 eggs = ikobacustom.skeleton [beaker, test]
     103eggs = ikobacustom.aaue [beaker, test]
    104104defaults = ['--tests-pattern', '^f?tests$', '-v']
    105105
     
    107107[i18n]
    108108recipe = z3c.recipe.i18n:i18n
    109 packages = ikobacustom.skeleton
    110 eggs = ikobacustom.skeleton
    111 domain = ikobacustom.skeleton
    112 output = src/ikobacustom/skeleton/locales
     109packages = ikobacustom.aaue
     110eggs = ikobacustom.aaue
     111domain = ikobacustom.aaue
     112output = src/ikobacustom/aaue/locales
    113113zcml =
    114114
     
    117117[zpasswd]
    118118recipe = z3c.recipe.dev:script
    119 eggs = ikobacustom.skeleton
     119eggs = ikobacustom.aaue
    120120module = zope.app.server.zpasswd
    121121method = main
     
    187187#[waeupdocs]
    188188#recipe = collective.recipe.sphinxbuilder
    189 #eggs = ikobacustom.skeleton[docs]
     189#eggs = ikobacustom.aaue[docs]
    190190#source = ${buildout:directory}/docs/source
    191191#build = ${buildout:directory}/docs/build
     
    194194[coverage-detect]
    195195recipe = zc.recipe.testrunner
    196 eggs = ikobacustom.skeleton[beaker]
     196eggs = ikobacustom.aaue[beaker]
    197197defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage']
    198198
     
    215215    diazo [wsgi]
    216216    PasteScript
    217     ikobacustom.skeleton [beaker,diazo]
     217    ikobacustom.aaue [beaker,diazo]
  • main/ikobacustom.aaue/trunk/etc/profile.ini.in

    r12175 r14310  
    5757
    5858[app:app]
    59 use = egg:ikobacustom.skeleton
     59use = egg:ikobacustom.aaue
    6060
    6161[pipeline:main]
  • main/ikobacustom.aaue/trunk/etc/site.zcml.in

    r14177 r14310  
    11<configure xmlns="http://namespaces.zope.org/zope"
    22           xmlns:ikoba="http://namespaces.waeup.org/ikoba"
    3            i18n_domain="ikobacustom.skeleton">
     3           i18n_domain="ikobacustom.aaue">
    44
    5   <include package="ikobacustom.skeleton" />
    6   <include package="ikobacustom.skeleton" file="mail.zcml" />
     5  <include package="ikobacustom.aaue" />
     6  <include package="ikobacustom.aaue" file="mail.zcml" />
    77
    88  <!-- install job container
     
    3333      path="${buildout:directory}/etc/paypal.conf" />
    3434
    35     <configure i18n_domain="ikobacustom.skeleton">
     35    <configure i18n_domain="ikobacustom.aaue">
    3636
    3737      <unauthenticatedPrincipal id="zope.anybody"
  • main/ikobacustom.aaue/trunk/setup.py

    r12175 r14310  
    5252    )
    5353
    54 setup(name = 'ikobacustom.skeleton',
     54setup(name = 'ikobacustom.aaue',
    5555      version = version,
    5656      description = "Customizations of the waeup.ikoba package",
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/browser/pdf.py

    r12372 r14310  
    2323from waeup.ikoba.browser.pdf import PDFCreator
    2424
    25 class SkeletonPDFCreator(PDFCreator):
     25class AAUEPDFCreator(PDFCreator):
    2626    """A utility to help with generating PDF docs.
    2727    """
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/configure.zcml

    r12175 r14310  
    66  -->
    77  <include package="waeup.ikoba" />
    8   <include package="ikobacustom.skeleton" file="locales.zcml" />
     8  <include package="ikobacustom.aaue" file="locales.zcml" />
    99  <grok:grok package="." />
    1010
     
    1414           zope.publisher.interfaces.browser.IBrowserRequest"
    1515      provides="zope.formlib.interfaces.ISimpleInputWidget"
    16       factory="ikobacustom.skeleton.widgets.phonewidget.NigeriaPhoneWidget"
     16      factory="ikobacustom.aaue.widgets.phonewidget.NigeriaPhoneWidget"
    1717      permission="zope.Public"
    1818      />
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/batching.py

    r12286 r14310  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Batch processing for skeleton documents.
     18"""Batch processing for aaue documents.
    1919"""
    2020import grok
     
    2222    CustomerProcessor,
    2323    CustomerDocumentProcessorBase, ContractProcessorBase)
    24 from ikobacustom.skeleton.customers.interfaces import (
    25     ISkeletonCustomer,
    26     ISkeletonCustomerDocument, ISkeletonContract)
    27 from ikobacustom.skeleton.interfaces import MessageFactory as _
     24from ikobacustom.aaue.customers.interfaces import (
     25    IAAUECustomer,
     26    IAAUECustomerDocument, IAAUEContract)
     27from ikobacustom.aaue.interfaces import MessageFactory as _
    2828
    2929
    30 class SkeletonCustomerProcessor(CustomerProcessor):
     30class AAUECustomerProcessor(CustomerProcessor):
    3131    """A batch processor for ICustomer objects.
    3232    """
    33     util_name = 'skeletoncustomerprocessor'
     33    util_name = 'aauecustomerprocessor'
    3434    grok.name(util_name)
    35     name = _('Skeleton Customer Processor')
    36     iface = ISkeletonCustomer
     35    name = _('AAUE Customer Processor')
     36    iface = IAAUECustomer
    3737
    3838
    39 class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessorBase):
    40     """A batch processor for ISkeletonCustomerDocument objects.
     39class AAUECustomerDocumentProcessor(CustomerDocumentProcessorBase):
     40    """A batch processor for IAAUECustomerDocument objects.
    4141    """
    42     util_name = 'skeletoncustomerdocumentprocessor'
     42    util_name = 'aauecustomerdocumentprocessor'
    4343    grok.name(util_name)
    44     name = _('Skeleton Customer Document Processor')
    45     iface = ISkeletonCustomerDocument
    46     factory_name = 'waeup.SkeletonCustomerDocument'
     44    name = _('AAUE Customer Document Processor')
     45    iface = IAAUECustomerDocument
     46    factory_name = 'waeup.AAUECustomerDocument'
    4747
    4848
    49 class SkeletonContractProcessor(ContractProcessorBase):
    50     """A batch processor for ISkeletonContract objects.
     49class AAUEContractProcessor(ContractProcessorBase):
     50    """A batch processor for IAAUEContract objects.
    5151    """
    52     util_name = 'skeletoncontractprocessor'
     52    util_name = 'aauecontractprocessor'
    5353    grok.name(util_name)
    54     name = _('Skeleton Customer Contract Processor')
    55     iface = ISkeletonContract
    56     factory_name = 'waeup.SkeletonContract'
     54    name = _('AAUE Customer Contract Processor')
     55    iface = IAAUEContract
     56    factory_name = 'waeup.AAUEContract'
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/browser.py

    r13067 r14310  
    2121from waeup.ikoba.customers.browser import (
    2222    PDFContractSlip, CustomerBaseEditFormPage)
    23 from ikobacustom.skeleton.interfaces import MessageFactory as _
     23from ikobacustom.aaue.interfaces import MessageFactory as _
    2424
    2525class PDFContractSlip(PDFContractSlip):
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/contracts.py

    r12502 r14310  
    2626from waeup.ikoba.customers.interfaces import ICustomerNavigation
    2727from waeup.ikoba.customers.contracts import ContractBase
    28 from ikobacustom.skeleton.interfaces import MessageFactory as _
    29 from ikobacustom.skeleton.customers.interfaces import (
    30     ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess,
    31     ISkeletonContractOfficialUse)
     28from ikobacustom.aaue.interfaces import MessageFactory as _
     29from ikobacustom.aaue.customers.interfaces import (
     30    IAAUEContract, IAAUEContractEdit, IAAUEContractProcess,
     31    IAAUEContractOfficialUse)
    3232
    3333
    34 class SkeletonContract(ContractBase):
     34class AAUEContract(ContractBase):
    3535    """This is a sample contract.
    3636    """
    3737
    3838    grok.implements(
    39         ISkeletonContractProcess,
    40         ISkeletonContract,
    41         ISkeletonContractEdit,
     39        IAAUEContractProcess,
     40        IAAUEContract,
     41        IAAUEContractEdit,
    4242        ICustomerNavigation)
    4343
    4444    contract_category = 'sample'
    4545
    46     form_fields_interface = ISkeletonContract
     46    form_fields_interface = IAAUEContract
    4747
    48     edit_form_fields_interface = ISkeletonContractEdit
     48    edit_form_fields_interface = IAAUEContractEdit
    4949
    50     ou_form_fields_interface = ISkeletonContractOfficialUse
     50    ou_form_fields_interface = IAAUEContractOfficialUse
    5151
    52     check_docs_interface = ISkeletonContract
     52    check_docs_interface = IAAUEContract
    5353
    54 SkeletonContract = attrs_to_fields(SkeletonContract)
     54AAUEContract = attrs_to_fields(AAUEContract)
    5555
    5656
    5757# Contracts must be importable. So we might need a factory.
    58 class SkeletonContractFactory(grok.GlobalUtility):
     58class AAUEContractFactory(grok.GlobalUtility):
    5959    """A factory for contracts.
    6060    """
    6161    grok.implements(IFactory)
    62     grok.name(u'waeup.SkeletonContract')
     62    grok.name(u'waeup.AAUEContract')
    6363    title = u"Create a new contract.",
    6464    description = u"This factory instantiates new sample contract instances."
    6565
    6666    def __call__(self, *args, **kw):
    67         return SkeletonContract(*args, **kw)
     67        return AAUEContract(*args, **kw)
    6868
    6969    def getInterfaces(self):
    70         return implementedBy(SkeletonContract)
     70        return implementedBy(AAUEContract)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/customer.py

    r12399 r14310  
    2525from waeup.ikoba.customers.customer import Customer
    2626from waeup.ikoba.customers.interfaces import ICustomerNavigation
    27 from ikobacustom.skeleton.customers.interfaces import ISkeletonCustomer
    28 from ikobacustom.skeleton.interfaces import MessageFactory as _
     27from ikobacustom.aaue.customers.interfaces import IAAUECustomer
     28from ikobacustom.aaue.interfaces import MessageFactory as _
    2929
    3030
    31 class SkeletonCustomer(Customer):
     31class AAUECustomer(Customer):
    3232    """This is a customer container for the various objects
    3333    owned by customers.
    3434    """
    35     grok.implements(ISkeletonCustomer, ICustomerNavigation)
    36     grok.provides(ISkeletonCustomer)
     35    grok.implements(IAAUECustomer, ICustomerNavigation)
     36    grok.provides(IAAUECustomer)
    3737
    38     form_fields_interface = ISkeletonCustomer
     38    form_fields_interface = IAAUECustomer
    3939
    40 SkeletonCustomer = attrs_to_fields(SkeletonCustomer)
     40AAUECustomer = attrs_to_fields(AAUECustomer)
    4141
    4242
    43 class SkeletonCustomerFactory(grok.GlobalUtility):
     43class AAUECustomerFactory(grok.GlobalUtility):
    4444    """A factory for customers.
    4545    """
    4646    grok.implements(IFactory)
    4747    grok.name(u'waeup.Customer')
    48     title = u"Create a new skeleton customer.",
    49     description = u"This factory instantiates new skeleton customer instances."
     48    title = u"Create a new aaue customer.",
     49    description = u"This factory instantiates new aaue customer instances."
    5050
    5151    def __call__(self, *args, **kw):
    52         return SkeletonCustomer()
     52        return AAUECustomer()
    5353
    5454    def getInterfaces(self):
    55         return implementedBy(SkeletonCustomer)
     55        return implementedBy(AAUECustomer)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/documents.py

    r12355 r14310  
    2525from waeup.ikoba.customers.interfaces import ICustomerNavigation
    2626from waeup.ikoba.customers.documents import CustomerDocumentBase
    27 from ikobacustom.skeleton.interfaces import MessageFactory as _
    28 from ikobacustom.skeleton.customers.interfaces import ISkeletonCustomerDocument
     27from ikobacustom.aaue.interfaces import MessageFactory as _
     28from ikobacustom.aaue.customers.interfaces import IAAUECustomerDocument
    2929
    3030
    31 class SkeletonCustomerDocument(CustomerDocumentBase):
     31class AAUECustomerDocument(CustomerDocumentBase):
    3232    """This is a sample customer document.
    3333    """
    3434
    35     grok.implements(ISkeletonCustomerDocument, ICustomerNavigation)
    36     grok.provides(ISkeletonCustomerDocument)
     35    grok.implements(IAAUECustomerDocument, ICustomerNavigation)
     36    grok.provides(IAAUECustomerDocument)
    3737
    3838    # Ikoba can store any number of files per Document object.
     
    4242    filenames = ('sample',)
    4343
    44     form_fields_interface = ISkeletonCustomerDocument
     44    form_fields_interface = IAAUECustomerDocument
    4545
    46 SkeletonCustomerDocument = attrs_to_fields(SkeletonCustomerDocument)
     46AAUECustomerDocument = attrs_to_fields(AAUECustomerDocument)
    4747
    4848
    4949# Customer documents must be importable. So we need a factory.
    50 class SkeletonCustomerDocumentFactory(grok.GlobalUtility):
     50class AAUECustomerDocumentFactory(grok.GlobalUtility):
    5151    """A factory for customer documents.
    5252    """
    5353    grok.implements(IFactory)
    54     grok.name(u'waeup.SkeletonCustomerDocument')
     54    grok.name(u'waeup.AAUECustomerDocument')
    5555    title = u"Create a new document.",
    5656    description = u"This factory instantiates new sample document instances."
    5757
    5858    def __call__(self, *args, **kw):
    59         return SkeletonCustomerDocument(*args, **kw)
     59        return AAUECustomerDocument(*args, **kw)
    6060
    6161    def getInterfaces(self):
    62         return implementedBy(SkeletonCustomerDocument)
     62        return implementedBy(AAUECustomerDocument)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/export.py

    r12502 r14310  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Exporters for skeleton customer objects and subobjects.
     18"""Exporters for aaue customer objects and subobjects.
    1919"""
    2020import grok
    2121from waeup.ikoba.customers.export import (
    2222    CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase)
    23 from ikobacustom.skeleton.customers.interfaces import (
    24     ISkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContractProcess)
    25 from ikobacustom.skeleton.interfaces import MessageFactory as _
     23from ikobacustom.aaue.customers.interfaces import (
     24    IAAUECustomer, IAAUECustomerDocument, IAAUEContractProcess)
     25from ikobacustom.aaue.interfaces import MessageFactory as _
    2626
    27 class SkeletonCustomerExporter(CustomerExporter):
     27class AAUECustomerExporter(CustomerExporter):
    2828    """Exporter for Customers.
    2929    """
    30     iface = ISkeletonCustomer
    31     title = _(u'Skeleton Customers')
     30    iface = IAAUECustomer
     31    title = _(u'AAUE Customers')
    3232
    3333
    34 class SkeletonCustomerDocumentExporter(CustomerDocumentExporterBase):
     34class AAUECustomerDocumentExporter(CustomerDocumentExporterBase):
    3535    """Exporter for documents.
    3636    """
    37     grok.name('skeletoncustomerdocuments')
    38     iface = ISkeletonCustomerDocument
    39     title = _(u'Skeleton Customer Documents')
    40     class_name = 'SkeletonCustomerDocument'
     37    grok.name('aauecustomerdocuments')
     38    iface = IAAUECustomerDocument
     39    title = _(u'AAUE Customer Documents')
     40    class_name = 'AAUECustomerDocument'
    4141
    4242
    43 class SkeletonContractExporter(ContractExporterBase):
     43class AAUEContractExporter(ContractExporterBase):
    4444    """Exporter for Contract instances.
    4545    """
    46     grok.name('skeletoncontracts')
    47     iface = ISkeletonContractProcess
    48     title = _(u'Skeleton Customer Contracts')
    49     class_name = 'SkeletonContract'
     46    grok.name('aauecontracts')
     47    iface = IAAUEContractProcess
     48    title = _(u'AAUE Customer Contracts')
     49    class_name = 'AAUEContract'
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/fileviewlets.py

    r13067 r14310  
    2323    FileDisplay, FileUpload, Image)
    2424
    25 from ikobacustom.skeleton.customers.documents import SkeletonCustomerDocument
     25from ikobacustom.aaue.customers.documents import AAUECustomerDocument
    2626
    2727from waeup.ikoba.customers.browser import (
     
    3939    """
    4040    grok.order(1)
    41     grok.context(SkeletonCustomerDocument)
     41    grok.context(AAUECustomerDocument)
    4242    grok.view(DocumentManageFormPage)
    4343    grok.require('waeup.manageCustomer')
     
    6161    """
    6262    grok.order(1)
    63     grok.context(SkeletonCustomerDocument)
     63    grok.context(AAUECustomerDocument)
    6464    grok.require('waeup.viewCustomer')
    6565    grok.view(DocumentDisplayFormPage)
     
    7474    """
    7575    grok.name('sample')
    76     grok.context(SkeletonCustomerDocument)
     76    grok.context(AAUECustomerDocument)
    7777    grok.require('waeup.viewCustomer')
    7878    download_name = u'sample'
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/interfaces.py

    r12502 r14310  
    2424    ConCatProductSource, CustomerDocumentSource)
    2525from waeup.ikoba.products.productoptions import ProductOptionField
    26 from ikobacustom.skeleton.interfaces import MessageFactory as _
     26from ikobacustom.aaue.interfaces import MessageFactory as _
    2727
    2828
    29 class ISkeletonCustomer(ICustomer):
     29class IAAUECustomer(ICustomer):
    3030    """Representation of a customer.
    3131
     
    3535
    3636
    37 class ISkeletonCustomerDocument(ICustomerDocument):
     37class IAAUECustomerDocument(ICustomerDocument):
    3838    """A customer document.
    3939
     
    4242# Customer contract interfaces
    4343
    44 class ISkeletonContract(IContract):
     44class IAAUEContract(IContract):
    4545    """A customer contract sample with document attached.
    4646
     
    5353        )
    5454
    55 class ISkeletonContractOfficialUse(IIkobaObject):
     55class IAAUEContractOfficialUse(IIkobaObject):
    5656    """Interface for editing official use data.
    5757
     
    6363        )
    6464
    65 class ISkeletonContractProcess(ISkeletonContract, ISkeletonContractOfficialUse):
     65class IAAUEContractProcess(IAAUEContract, IAAUEContractOfficialUse):
    6666    """Interface for processing contract data.
    6767    """
     
    7575        )
    7676
    77 class ISkeletonContractEdit(ISkeletonContract):
     77class IAAUEContractEdit(IAAUEContract):
    7878    """Interface for editing sample contract data by customers.
    7979
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/tests/test_browser.py

    r12665 r14310  
    3030from waeup.ikoba.customers.tests.test_batching import CustomerImportExportSetup
    3131from waeup.ikoba.customers.tests.test_browser import CustomersFullSetup
    32 from ikobacustom.skeleton.customers.export import (
    33     SkeletonCustomerExporter,
    34     SkeletonCustomerDocumentExporter,
    35     SkeletonContractExporter)
    36 from ikobacustom.skeleton.customers.batching import (
    37     SkeletonCustomerProcessor,
    38     SkeletonCustomerDocumentProcessor,
    39     SkeletonContractProcessor)
    40 from ikobacustom.skeleton.testing import FunctionalLayer, samples_dir
     32from ikobacustom.aaue.customers.export import (
     33    AAUECustomerExporter,
     34    AAUECustomerDocumentExporter,
     35    AAUEContractExporter)
     36from ikobacustom.aaue.customers.batching import (
     37    AAUECustomerProcessor,
     38    AAUECustomerDocumentProcessor,
     39    AAUEContractProcessor)
     40from ikobacustom.aaue.testing import FunctionalLayer, samples_dir
    4141
    4242SAMPLE_IMAGE = os.path.join(os.path.dirname(__file__), 'test_image.jpg')
     
    6161        IWorkflowState(customer).setState('started')
    6262        self.app['customers'].addCustomer(customer)
    63         document = createObject(u'waeup.SkeletonCustomerDocument')
     63        document = createObject(u'waeup.AAUECustomerDocument')
    6464        document.title = u'My first document'
    6565        customer['documents'].addDocument(document)
    66         contract = createObject(u'waeup.SkeletonContract')
     66        contract = createObject(u'waeup.AAUEContract')
    6767        contract.tc_dict = {'en':u'Hello World'}
    6868        customer['contracts'].addContract(contract)
     
    7777        # set values we can expect in export file
    7878        self.setup_for_export()
    79         exporter = SkeletonCustomerExporter()
     79        exporter = AAUECustomerExporter()
    8080        exporter.export_all(self.app, self.outfile)
    8181        result = open(self.outfile, 'rb').read()
     
    8585            'K1000000,aa@aa.aa,Beate,Mueller,,,123,f,0,,,started,[]\r\n')
    8686        # We can reimport the file ...
    87         processor = SkeletonCustomerProcessor()
     87        processor = AAUECustomerProcessor()
    8888        result = processor.doImport(
    8989            self.outfile,
     
    118118        # set values we can expect in export file
    119119        self.setup_for_export()
    120         exporter = SkeletonCustomerDocumentExporter()
     120        exporter = AAUECustomerDocumentExporter()
    121121        exporter.export_all(self.app, self.outfile)
    122122        result = open(self.outfile, 'rb').read()
    123123        self.assertMatches(result,
    124124            'class_name,document_id,history,state,title,user_id\r\n'
    125             'SkeletonCustomerDocument,%s,'
     125            'AAUECustomerDocument,%s,'
    126126            '[u\'2014-12-21 17:00:36 WAT - Document created by system\'],'
    127127            'created,My first document,K1000000\r\n'
    128128            % self.document.document_id)
    129129        # We can reimport the file if we change the header (user_id -> customer_id)
    130         processor = SkeletonCustomerDocumentProcessor()
     130        processor = AAUECustomerDocumentProcessor()
    131131        open(self.outfile, 'wb').write(
    132132            'customer_id,class_name,document_id,state,title\r\n'
    133             'K1000000,SkeletonCustomerDocument,%s,started,My first title\r\n'
     133            'K1000000,AAUECustomerDocument,%s,started,My first title\r\n'
    134134            % self.document.document_id)
    135135        result = processor.doImport(
     
    162162        # set values we can expect in export file
    163163        self.setup_for_export()
    164         exporter = SkeletonContractExporter()
     164        exporter = AAUEContractExporter()
    165165        exporter.export_all(self.app, self.outfile)
    166166        result = open(self.outfile, 'rb').read()
     
    169169            'fee_based,history,last_product_id,product_object,product_options,'
    170170            'state,tc_dict,title,user_id,valid_from,valid_to\r\n'
    171             'SkeletonContract,,sample,%s,,0,'
     171            'AAUEContract,,sample,%s,,0,'
    172172            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    173173            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000,,\r\n'
    174174            % self.contract.contract_id)
    175175        # We can reimport the file if we change the header (user_id -> customer_id)
    176         processor = SkeletonContractProcessor()
     176        processor = AAUEContractProcessor()
    177177        open(self.outfile, 'wb').write(
    178178            'class_name,contract_category,contract_id,document_object,'
    179179            'history,last_product_id,product_object,product_options,'
    180180            'state,tc_dict,title,user_id\r\n'
    181             'SkeletonContract,sample,%s,,'
     181            'AAUEContract,sample,%s,,'
    182182            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    183183            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
     
    221221    def setup_customizable_params(self):
    222222        self._contract_category = u'sample'
    223         self._document_factory = 'waeup.SkeletonCustomerDocument'
    224         self._contract_factory = 'waeup.SkeletonContract'
     223        self._document_factory = 'waeup.AAUECustomerDocument'
     224        self._contract_factory = 'waeup.AAUEContract'
    225225        return
    226226
     
    304304    def setup_customizable_params(self):
    305305        self._contract_category = u'sample'
    306         self._document_factory = 'waeup.SkeletonCustomerDocument'
    307         self._contract_factory = 'waeup.SkeletonContract'
     306        self._document_factory = 'waeup.AAUECustomerDocument'
     307        self._contract_factory = 'waeup.AAUEContract'
    308308        return
    309309
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/tests/test_contract.py

    r12292 r14310  
    2828from waeup.ikoba.customers.contracts import ContractsContainer
    2929
    30 from ikobacustom.skeleton.testing import (FunctionalLayer, FunctionalTestCase)
    31 from ikobacustom.skeleton.customers.contracts import SkeletonContract
    32 from ikobacustom.skeleton.customers.interfaces import ISkeletonContract
     30from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase)
     31from ikobacustom.aaue.customers.contracts import AAUEContract
     32from ikobacustom.aaue.customers.interfaces import IAAUEContract
    3333
    3434
     
    3838
    3939    def test_interfaces(self):
    40         verify.verifyClass(ISkeletonContract, SkeletonContract)
    41         verify.verifyClass(ICustomerNavigation, SkeletonContract)
    42         verify.verifyObject(ISkeletonContract, SkeletonContract())
    43         verify.verifyObject(ICustomerNavigation, SkeletonContract())
     40        verify.verifyClass(IAAUEContract, AAUEContract)
     41        verify.verifyClass(ICustomerNavigation, AAUEContract)
     42        verify.verifyObject(IAAUEContract, AAUEContract())
     43        verify.verifyObject(ICustomerNavigation, AAUEContract())
    4444        return
    4545
    4646    def test_addContract(self):
    4747        container = ContractsContainer()
    48         contract = createObject(u'waeup.SkeletonContract')
     48        contract = createObject(u'waeup.AAUEContract')
    4949        id = contract.contract_id
    5050        container.addContract(contract)
    5151        self.assertEqual(container[id], contract)
    5252        self.assertRaises(TypeError, container.addContract, object())
    53         self.assertEqual(contract.class_name, 'SkeletonContract')
     53        self.assertEqual(contract.class_name, 'AAUEContract')
    5454        return
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/tests/test_customer.py

    r12273 r14310  
    1717##
    1818"""
    19 Tests for skeleton customers.
     19Tests for aaue customers.
    2020"""
    2121import tempfile
     
    3030from waeup.ikoba.customers.container import CustomersContainer
    3131
    32 from ikobacustom.skeleton.testing import (FunctionalLayer, FunctionalTestCase)
    33 from ikobacustom.skeleton.customers.customer import SkeletonCustomer
    34 from ikobacustom.skeleton.customers.interfaces import ISkeletonCustomer
     32from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase)
     33from ikobacustom.aaue.customers.customer import AAUECustomer
     34from ikobacustom.aaue.customers.interfaces import IAAUECustomer
    3535
    36 class SkeletonCustomerTestCase(FunctionalTestCase):
     36class AAUECustomerTestCase(FunctionalTestCase):
    3737
    3838    layer = FunctionalLayer
    3939
    4040    def setUp(self):
    41         super(SkeletonCustomerTestCase, self).setUp()
     41        super(AAUECustomerTestCase, self).setUp()
    4242
    4343        # Prepopulate ZODB
     
    5252
    5353    def test_interfaces(self):
    54         verify.verifyClass(ISkeletonCustomer, SkeletonCustomer)
    55         verify.verifyClass(ICustomerNavigation, SkeletonCustomer)
    56         verify.verifyObject(ISkeletonCustomer, SkeletonCustomer())
    57         verify.verifyObject(ICustomerNavigation, SkeletonCustomer())
     54        verify.verifyClass(IAAUECustomer, AAUECustomer)
     55        verify.verifyClass(ICustomerNavigation, AAUECustomer)
     56        verify.verifyObject(IAAUECustomer, AAUECustomer())
     57        verify.verifyObject(ICustomerNavigation, AAUECustomer())
    5858        return
    5959
    60     def test_addSkeletonCustomer(self):
     60    def test_addAAUECustomer(self):
    6161        customer = createObject(u'waeup.Customer')
    62         verify.verifyObject(ISkeletonCustomer, customer)
     62        verify.verifyObject(IAAUECustomer, customer)
    6363        self.app['customers'].addCustomer(customer)
    6464        self.assertEqual(customer.customer_id, 'K1000000')
     
    6868    def tearDown(self):
    6969        shutil.rmtree(self.dc_root)
    70         super(SkeletonCustomerTestCase, self).tearDown()
     70        super(AAUECustomerTestCase, self).tearDown()
    7171        return
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/tests/test_document.py

    r12292 r14310  
    2828from waeup.ikoba.customers.documents import CustomerDocumentsContainer
    2929
    30 from ikobacustom.skeleton.testing import (FunctionalLayer, FunctionalTestCase)
    31 from ikobacustom.skeleton.customers.documents import SkeletonCustomerDocument
    32 from ikobacustom.skeleton.customers.interfaces import ISkeletonCustomerDocument
     30from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase)
     31from ikobacustom.aaue.customers.documents import AAUECustomerDocument
     32from ikobacustom.aaue.customers.interfaces import IAAUECustomerDocument
    3333
    3434
     
    3838
    3939    def test_interfaces(self):
    40         verify.verifyClass(ISkeletonCustomerDocument, SkeletonCustomerDocument)
    41         verify.verifyClass(ICustomerNavigation, SkeletonCustomerDocument)
    42         verify.verifyObject(ISkeletonCustomerDocument, SkeletonCustomerDocument())
    43         verify.verifyObject(ICustomerNavigation, SkeletonCustomerDocument())
     40        verify.verifyClass(IAAUECustomerDocument, AAUECustomerDocument)
     41        verify.verifyClass(ICustomerNavigation, AAUECustomerDocument)
     42        verify.verifyObject(IAAUECustomerDocument, AAUECustomerDocument())
     43        verify.verifyObject(ICustomerNavigation, AAUECustomerDocument())
    4444        return
    4545
    4646    def test_addDocument(self):
    4747        container = CustomerDocumentsContainer()
    48         document = createObject(u'waeup.SkeletonCustomerDocument')
     48        document = createObject(u'waeup.AAUECustomerDocument')
    4949        id = document.document_id
    5050        container.addDocument(document)
    5151        self.assertEqual(container[id], document)
    5252        self.assertRaises(TypeError, container.addDocument, object())
    53         self.assertEqual(document.class_name, 'SkeletonCustomerDocument')
     53        self.assertEqual(document.class_name, 'AAUECustomerDocument')
    5454        return
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/utils.py

    r12530 r14310  
    2525    SUBMITTED, VERIFIED, REJECTED,
    2626    EXPIRED, PROVISIONALLY)
    27 from ikobacustom.skeleton.interfaces import MessageFactory as _
     27from ikobacustom.aaue.interfaces import MessageFactory as _
    2828
    29 class SkeletonCustomersUtils(CustomersUtils):
     29class AAUECustomersUtils(CustomersUtils):
    3030    """A collection of methods subject to customization.
    3131    """
     
    4747        #'CustomerPDFDocument': _('PDF Document'),
    4848
    49         'SkeletonCustomerDocument': _('Skeleton Document'),
     49        'AAUECustomerDocument': _('AAUE Document'),
    5050        }
    5151
     
    5353        #'SampleContract': _('Sample Contract'),
    5454
    55         'SkeletonContract': _('Skeleton Contract'),
     55        'AAUEContract': _('AAUE Contract'),
    5656        }
    5757
     
    6262    EXPORTER_NAMES = (
    6363        'customers',
    64         'skeletoncustomerdocuments',
    65         'skeletoncontracts')
     64        'aauecustomerdocuments',
     65        'aauecontracts')
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/__init__.py

    r12269 r14310  
    22"""
    33# Make this a package.
    4 from ikobacustom.skeleton.documents.document import SkeletonDocument
     4from ikobacustom.aaue.documents.document import AAUEDocument
    55
    66__all__ = [
    7     'SkeletonDocument',
     7    'AAUEDocument',
    88    ]
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/batching.py

    r12274 r14310  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Batch processing for skeleton documents.
     18"""Batch processing for aaue documents.
    1919"""
    2020import grok
    2121from waeup.ikoba.documents.batching import DocumentProcessorBase
    22 from ikobacustom.skeleton.documents.interfaces import ISkeletonDocument
    23 from ikobacustom.skeleton.interfaces import MessageFactory as _
     22from ikobacustom.aaue.documents.interfaces import IAAUEDocument
     23from ikobacustom.aaue.interfaces import MessageFactory as _
    2424
    2525
    26 class SkeletonDocumentProcessor(DocumentProcessorBase):
    27     """A batch processor for ISkeletonDocument objects.
     26class AAUEDocumentProcessor(DocumentProcessorBase):
     27    """A batch processor for IAAUEDocument objects.
    2828    """
    29     util_name = 'skeletondocumentprocessor'
     29    util_name = 'aauedocumentprocessor'
    3030    grok.name(util_name)
    3131
    32     name = _('Skeleton Document Processor')
    33     iface = ISkeletonDocument
     32    name = _('AAUE Document Processor')
     33    iface = IAAUEDocument
    3434
    35     factory_name = 'waeup.SkeletonDocument'
     35    factory_name = 'waeup.AAUEDocument'
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/document.py

    r12399 r14310  
    2424from waeup.ikoba.utils.helpers import attrs_to_fields
    2525from waeup.ikoba.documents.document import PublicDocumentBase
    26 from ikobacustom.skeleton.documents.interfaces import ISkeletonDocument
    27 from ikobacustom.skeleton.interfaces import MessageFactory as _
     26from ikobacustom.aaue.documents.interfaces import IAAUEDocument
     27from ikobacustom.aaue.interfaces import MessageFactory as _
    2828
    2929
    30 class SkeletonDocument(PublicDocumentBase):
     30class AAUEDocument(PublicDocumentBase):
    3131    """This is a document.
    3232    """
    33     grok.implements(ISkeletonDocument)
    34     grok.provides(ISkeletonDocument)
     33    grok.implements(IAAUEDocument)
     34    grok.provides(IAAUEDocument)
    3535
    36     form_fields_interface = ISkeletonDocument
     36    form_fields_interface = IAAUEDocument
    3737
    38 SkeletonDocument = attrs_to_fields(SkeletonDocument)
     38AAUEDocument = attrs_to_fields(AAUEDocument)
    3939
    4040
    41 class SkeletonDocumentFactory(grok.GlobalUtility):
     41class AAUEDocumentFactory(grok.GlobalUtility):
    4242    """A factory for documents.
    4343    """
    4444    grok.implements(IFactory)
    45     grok.name(u'waeup.SkeletonDocument')
     45    grok.name(u'waeup.AAUEDocument')
    4646    title = u"Create a new document.",
    47     description = u"This factory instantiates new skeleton documents."
     47    description = u"This factory instantiates new aaue documents."
    4848
    4949    def __call__(self, *args, **kw):
    50         return SkeletonDocument(*args, **kw)
     50        return AAUEDocument(*args, **kw)
    5151
    5252    def getInterfaces(self):
    53         return implementedBy(SkeletonDocument)
     53        return implementedBy(AAUEDocument)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/export.py

    r12292 r14310  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Exporters for skeleton documents.
     18"""Exporters for aaue documents.
    1919"""
    2020import grok
    2121from waeup.ikoba.documents.export import DocumentExporterBase
    22 from ikobacustom.skeleton.documents.interfaces import ISkeletonDocument
    23 from ikobacustom.skeleton.interfaces import MessageFactory as _
     22from ikobacustom.aaue.documents.interfaces import IAAUEDocument
     23from ikobacustom.aaue.interfaces import MessageFactory as _
    2424
    2525
    26 class SkeletonDocumentExporter(DocumentExporterBase):
     26class AAUEDocumentExporter(DocumentExporterBase):
    2727    """Exporter for documents.
    2828    """
    29     grok.name('skeletondocuments')
    30     iface = ISkeletonDocument
    31     class_name = 'SkeletonDocument'
    32     title = _(u'Skeleton Documents')
     29    grok.name('aauedocuments')
     30    iface = IAAUEDocument
     31    class_name = 'AAUEDocument'
     32    title = _(u'AAUE Documents')
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/interfaces.py

    r12292 r14310  
    1717##
    1818from waeup.ikoba.documents.interfaces import IPublicDocument
    19 from ikobacustom.skeleton.interfaces import MessageFactory as _
     19from ikobacustom.aaue.interfaces import MessageFactory as _
    2020
    2121
    22 class ISkeletonDocument(IPublicDocument):
    23     """A representation of a skeleton document.
     22class IAAUEDocument(IPublicDocument):
     23    """A representation of a aaue document.
    2424
    2525    """
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/tests/test_browser.py

    r12290 r14310  
    2727from zope.interface.verify import verifyObject, verifyClass
    2828from waeup.ikoba.documents.tests.test_batching import DocumentImportExportSetup
    29 from ikobacustom.skeleton.documents.document import SkeletonDocument
    30 from ikobacustom.skeleton.documents.export import SkeletonDocumentExporter
    31 from ikobacustom.skeleton.documents.batching import SkeletonDocumentProcessor
    32 from ikobacustom.skeleton.testing import FunctionalLayer
     29from ikobacustom.aaue.documents.document import AAUEDocument
     30from ikobacustom.aaue.documents.export import AAUEDocumentExporter
     31from ikobacustom.aaue.documents.batching import AAUEDocumentProcessor
     32from ikobacustom.aaue.testing import FunctionalLayer
    3333
    3434
     
    3838
    3939    def setup_for_export(self):
    40         document = SkeletonDocument()
     40        document = AAUEDocument()
    4141        document.document_id = u'DOC1'
    4242        document.title = u'My first document'
     
    4949        # set values we can expect in export file
    5050        self.setup_for_export()
    51         exporter = SkeletonDocumentExporter()
     51        exporter = AAUEDocumentExporter()
    5252        exporter.export_all(self.app, self.outfile)
    5353        result = open(self.outfile, 'rb').read()
     
    5555            'class_name,description,document_id,history,state,title,'
    5656            'users_with_local_roles\r\n'
    57             'SkeletonDocument,,DOC1,'
     57            'AAUEDocument,,DOC1,'
    5858            '[u\'2014-12-21 23:27:15 WAT - Document created by system\'],'
    5959            'created,My first document,[]\r\n')
    6060        # We can import the same file.
    61         processor = SkeletonDocumentProcessor()
     61        processor = AAUEDocumentProcessor()
    6262        result = processor.doImport(
    6363            self.outfile,
     
    7979        self.assertEqual(num_fail,0)
    8080        # We can import the same file in update mode.
    81         processor = SkeletonDocumentProcessor()
     81        processor = AAUEDocumentProcessor()
    8282        result = processor.doImport(
    8383            self.outfile,
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/tests/test_document.py

    r12292 r14310  
    1717##
    1818"""
    19 Tests for skeleton documents.
     19Tests for aaue documents.
    2020"""
    2121from zope.interface.verify import verifyClass, verifyObject
     
    2323from waeup.ikoba.documents.container import DocumentsContainer
    2424
    25 from ikobacustom.skeleton.testing import (FunctionalLayer, FunctionalTestCase)
    26 from ikobacustom.skeleton.documents.document import SkeletonDocument
    27 from ikobacustom.skeleton.documents.interfaces import ISkeletonDocument
     25from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase)
     26from ikobacustom.aaue.documents.document import AAUEDocument
     27from ikobacustom.aaue.documents.interfaces import IAAUEDocument
    2828
    29 class SkeletonDocumentTestCase(FunctionalTestCase):
     29class AAUEDocumentTestCase(FunctionalTestCase):
    3030
    3131    layer = FunctionalLayer
     
    3535        self.assertTrue(
    3636            verifyClass(
    37                 ISkeletonDocument, SkeletonDocument)
     37                IAAUEDocument, AAUEDocument)
    3838            )
    3939        self.assertTrue(
    4040            verifyObject(
    41                 ISkeletonDocument, SkeletonDocument())
     41                IAAUEDocument, AAUEDocument())
    4242            )
    4343        return
    4444
    45     def test_addSkeletonDocument(self):
     45    def test_addAAUEDocument(self):
    4646        container = DocumentsContainer()
    47         document = createObject(u'waeup.SkeletonDocument')
     47        document = createObject(u'waeup.AAUEDocument')
    4848        document.document_id = u'DOC1'
    4949        container.addDocument(document)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/utils.py

    r12411 r14310  
    1919"""
    2020from waeup.ikoba.documents.utils import DocumentsUtils
    21 from ikobacustom.skeleton.interfaces import MessageFactory as _
     21from ikobacustom.aaue.interfaces import MessageFactory as _
    2222
    2323
    24 class SkeletonDocumentsUtils(DocumentsUtils):
     24class AAUEDocumentsUtils(DocumentsUtils):
    2525    """A collection of methods subject to customization.
    2626    """
     
    3030        'HTMLDocument': _('HTML Document'),
    3131        'RESTDocument': _('REST Document'),
    32         'SkeletonDocument': _('Skeleton Document'),
     32        'AAUEDocument': _('AAUE Document'),
    3333        }
    3434
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/ftesting.zcml

    r12175 r14310  
    22   xmlns="http://namespaces.zope.org/zope"
    33   xmlns:ikoba="http://namespaces.waeup.org/ikoba"
    4    i18n_domain="ikobacustom.skeleton"
    5    package="ikobacustom.skeleton"
     4   i18n_domain="ikobacustom.aaue"
     5   package="ikobacustom.aaue"
    66   >
    77
    88  <include package="grok" />
    9   <includeOverrides package="ikobacustom.skeleton" />
    10   <include package="ikobacustom.skeleton" file="mail.zcml" />
     9  <includeOverrides package="ikobacustom.aaue" />
     10  <include package="ikobacustom.aaue" file="mail.zcml" />
    1111
    1212  <!-- Where should the datacenter reside by default?
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/interfaces.py

    r12176 r14310  
    2020from zope import schema
    2121from zc.sourcefactory.basic import BasicSourceFactory
    22 from ikobacustom.skeleton.utils.lgas import LGAS
     22from ikobacustom.aaue.utils.lgas import LGAS
    2323
    24 _ = MessageFactory = zope.i18nmessageid.MessageFactory('ikobacustom.skeleton')
     24_ = MessageFactory = zope.i18nmessageid.MessageFactory('ikobacustom.aaue')
    2525
    2626
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/__init__.py

    r12177 r14310  
    22"""
    33# Make this a package.
    4 from ikobacustom.skeleton.products.product import SkeletonProduct
     4from ikobacustom.aaue.products.product import AAUEProduct
    55
    66__all__ = [
    7     'SkeletonProduct',
     7    'AAUEProduct',
    88    ]
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/batching.py

    r12284 r14310  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Batch processing for skeleton products.
     18"""Batch processing for aaue products.
    1919"""
    2020import grok
    2121from waeup.ikoba.products.batching import ProductProcessor
    22 from ikobacustom.skeleton.products.interfaces import ISkeletonProduct
    23 from ikobacustom.skeleton.interfaces import MessageFactory as _
     22from ikobacustom.aaue.products.interfaces import IAAUEProduct
     23from ikobacustom.aaue.interfaces import MessageFactory as _
    2424
    25 class SkeletonProductProcessor(ProductProcessor):
     25class AAUEProductProcessor(ProductProcessor):
    2626
    27     iface = ISkeletonProduct
    28     name = _('Skeleton Product Processor')
    29     util_name = 'skeletonproductprocessor'
     27    iface = IAAUEProduct
     28    name = _('AAUE Product Processor')
     29    util_name = 'aaueproductprocessor'
    3030    grok.name(util_name)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/export.py

    r12270 r14310  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Exporters for skeleton products.
     18"""Exporters for aaue products.
    1919"""
    2020import grok
    2121from waeup.ikoba.utils.helpers import iface_names
    2222from waeup.ikoba.products.export import ProductExporter
    23 from ikobacustom.skeleton.products.interfaces import ISkeletonProduct
    24 from ikobacustom.skeleton.interfaces import MessageFactory as _
     23from ikobacustom.aaue.products.interfaces import IAAUEProduct
     24from ikobacustom.aaue.interfaces import MessageFactory as _
    2525
    2626
    27 class SkeletonProductExporter(ProductExporter):
     27class AAUEProductExporter(ProductExporter):
    2828    """Exporter for products.
    2929    """
    3030
    31     fields = tuple(sorted(iface_names(ISkeletonProduct))) + (
     31    fields = tuple(sorted(iface_names(IAAUEProduct))) + (
    3232        'users_with_local_roles',)
    3333
    3434    #: The title under which this exporter will be displayed
    35     #title = _(u'Skeleton Products')
     35    #title = _(u'AAUE Products')
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/interfaces.py

    r12292 r14310  
    1717##
    1818from waeup.ikoba.products.interfaces import IProduct
    19 from ikobacustom.skeleton.interfaces import MessageFactory as _
     19from ikobacustom.aaue.interfaces import MessageFactory as _
    2020
    2121
    22 class ISkeletonProduct(IProduct):
    23     """A representation of a skeleton product.
     22class IAAUEProduct(IProduct):
     23    """A representation of a aaue product.
    2424
    2525    """
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/product.py

    r12399 r14310  
    2424from waeup.ikoba.utils.helpers import attrs_to_fields
    2525from waeup.ikoba.products.product import Product
    26 from ikobacustom.skeleton.products.interfaces import ISkeletonProduct
    27 from ikobacustom.skeleton.interfaces import MessageFactory as _
     26from ikobacustom.aaue.products.interfaces import IAAUEProduct
     27from ikobacustom.aaue.interfaces import MessageFactory as _
    2828
    2929
    30 class SkeletonProduct(Product):
     30class AAUEProduct(Product):
    3131    """This is a product.
    3232    """
    33     grok.implements(ISkeletonProduct)
    34     grok.provides(ISkeletonProduct)
     33    grok.implements(IAAUEProduct)
     34    grok.provides(IAAUEProduct)
    3535
    36     form_fields_interface = ISkeletonProduct
     36    form_fields_interface = IAAUEProduct
    3737
    38 SkeletonProduct = attrs_to_fields(SkeletonProduct)
     38AAUEProduct = attrs_to_fields(AAUEProduct)
    3939
    4040
    41 class SkeletonProductFactory(grok.GlobalUtility):
     41class AAUEProductFactory(grok.GlobalUtility):
    4242    """A factory for products.
    4343    """
     
    4545    grok.name(u'waeup.Product')
    4646    title = u"Create a new product.",
    47     description = u"This factory instantiates new skeleton products."
     47    description = u"This factory instantiates new aaue products."
    4848
    4949    def __call__(self, *args, **kw):
    50         return SkeletonProduct(*args, **kw)
     50        return AAUEProduct(*args, **kw)
    5151
    5252    def getInterfaces(self):
    53         return implementedBy(SkeletonProduct)
     53        return implementedBy(AAUEProduct)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/tests/test_browser.py

    r12685 r14310  
    2727from zope.interface.verify import verifyObject, verifyClass
    2828from waeup.ikoba.products.tests.test_batching import ProductImportExportSetup
    29 from ikobacustom.skeleton.products.product import SkeletonProduct
    30 from ikobacustom.skeleton.products.export import SkeletonProductExporter
    31 from ikobacustom.skeleton.products.batching import SkeletonProductProcessor
    32 from ikobacustom.skeleton.testing import FunctionalLayer
     29from ikobacustom.aaue.products.product import AAUEProduct
     30from ikobacustom.aaue.products.export import AAUEProductExporter
     31from ikobacustom.aaue.products.batching import AAUEProductProcessor
     32from ikobacustom.aaue.testing import FunctionalLayer
    3333
    3434
     
    3838
    3939    def setup_for_export(self):
    40         product = SkeletonProduct()
     40        product = AAUEProduct()
    4141        product.product_id = u'SAM'
    4242        product.contract_category = u'sample'
     
    5050        # set values we can expect in export file
    5151        self.setup_for_export()
    52         exporter = SkeletonProductExporter()
     52        exporter = AAUEProductExporter()
    5353        exporter.export_all(self.app, self.outfile)
    5454        result = open(self.outfile, 'rb').read()
     
    5959            'sample,,,[],SAM,,Unnamed,2015-12-04#,,[]\r\n')
    6060        # We can import the same file.
    61         processor = SkeletonProductProcessor()
     61        processor = AAUEProductProcessor()
    6262        result = processor.doImport(
    6363            self.outfile,
     
    8181        self.assertEqual(num_fail,0)
    8282        # We can import the same file in update mode.
    83         processor = SkeletonProductProcessor()
     83        processor = AAUEProductProcessor()
    8484        result = processor.doImport(
    8585            self.outfile,
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/products/tests/test_product.py

    r12177 r14310  
    1717##
    1818"""
    19 Tests for skeleton products.
     19Tests for aaue products.
    2020"""
    2121from zope.interface.verify import verifyClass, verifyObject
     
    2424from waeup.ikoba.products.container import ProductsContainer
    2525
    26 from ikobacustom.skeleton.testing import (FunctionalLayer, FunctionalTestCase)
    27 from ikobacustom.skeleton.products.product import SkeletonProduct
    28 from ikobacustom.skeleton.products.interfaces import ISkeletonProduct
     26from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase)
     27from ikobacustom.aaue.products.product import AAUEProduct
     28from ikobacustom.aaue.products.interfaces import IAAUEProduct
    2929
    30 class SkeletonProductTestCase(FunctionalTestCase):
     30class AAUEProductTestCase(FunctionalTestCase):
    3131
    3232    layer = FunctionalLayer
     
    3636        self.assertTrue(
    3737            verifyClass(
    38                 ISkeletonProduct, SkeletonProduct)
     38                IAAUEProduct, AAUEProduct)
    3939            )
    4040        self.assertTrue(
    4141            verifyObject(
    42                 ISkeletonProduct, SkeletonProduct())
     42                IAAUEProduct, AAUEProduct())
    4343            )
    4444        return
    4545
    46     def test_addSkeletonProduct(self):
     46    def test_addAAUEProduct(self):
    4747        container = ProductsContainer()
    4848        product = createObject(u'waeup.Product')
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/testing.py

    r12369 r14310  
    2020import os
    2121import tempfile
    22 import ikobacustom.skeleton
     22import ikobacustom.aaue
    2323from zope.app.testing.functional import ZCMLLayer
    2424from waeup.ikoba.testing import FunctionalTestCase
    2525
    26 # Some funcional layer that groks ikobacustom.skeleton.
     26# Some funcional layer that groks ikobacustom.aaue.
    2727ftesting_zcml = os.path.join(
    28     os.path.dirname(ikobacustom.skeleton.__file__), 'ftesting.zcml')
     28    os.path.dirname(ikobacustom.aaue.__file__), 'ftesting.zcml')
    2929FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer',
    3030                            allow_teardown=True)
     
    3434    # and return its path.
    3535    tmp_dir = os.path.join(
    36         tempfile.gettempdir(), 'ikobacustom.skeleton.pdf-samples')
     36        tempfile.gettempdir(), 'ikobacustom.aaue.pdf-samples')
    3737    if not os.path.exists(tmp_dir):
    3838        os.mkdir(tmp_dir)
  • main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/utils/utils.py

    r12489 r14310  
    2020import pytz
    2121from waeup.ikoba.utils.utils import IkobaUtils, sorted_phone_prefixes
    22 from ikobacustom.skeleton.interfaces import MessageFactory as _
     22from ikobacustom.aaue.interfaces import MessageFactory as _
    2323
    2424INT_PHONE_PREFIXES = [
     
    3333    ]
    3434
    35 class SkeletonIkobaUtils(IkobaUtils):
     35class AAUEIkobaUtils(IkobaUtils):
    3636    """A collection of methods subject to customization.
    3737    """
     
    6666        'products',
    6767        'customers',
    68         'skeletoncustomerdocuments',
    69         'skeletoncontracts')
     68        'aauecustomerdocuments',
     69        'aauecontracts')
    7070
    7171    BATCH_PROCESSOR_NAMES = (
    72         'skeletoncustomerprocessor',
    73         'skeletoncustomerdocumentprocessor',
    74         'skeletoncontractprocessor',
    75         'skeletonproductprocessor',
     72        'aauecustomerprocessor',
     73        'aauecustomerdocumentprocessor',
     74        'aauecontractprocessor',
     75        'aaueproductprocessor',
    7676        'pdfdocumentprocessor',
    7777        'htmldocumentprocessor',
  • main/ikobacustom.aaue/trunk/versions.cfg

    r13790 r14310  
    1 # Versions of packages used by kofacustom.skeleton
     1# Versions of packages used by kofacustom.aaue
    22[buildout]
    33extends = sources/waeup.ikoba/versions.cfg
Note: See TracChangeset for help on using the changeset viewer.