Ignore:
Timestamp:
23 Sep 2016, 05:54:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Renaming 2

Location:
main/ikobacustom.uniben/trunk/src/ikobacustom/uniben
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/browser/pdf.py

    r12372 r14181  
    2323from waeup.ikoba.browser.pdf import PDFCreator
    2424
    25 class SkeletonPDFCreator(PDFCreator):
     25class UnibenPDFCreator(PDFCreator):
    2626    """A utility to help with generating PDF docs.
    2727    """
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/batching.py

    r14178 r14181  
    2323    CustomerDocumentProcessorBase, ContractProcessorBase)
    2424from ikobacustom.uniben.customers.interfaces import (
    25     ISkeletonCustomer,
    26     ISkeletonCustomerDocument, ISkeletonContract)
     25    IUnibenCustomer,
     26    IUnibenCustomerDocument, IUnibenContract)
    2727from ikobacustom.uniben.interfaces import MessageFactory as _
    2828
    2929
    30 class SkeletonCustomerProcessor(CustomerProcessor):
     30class UnibenCustomerProcessor(CustomerProcessor):
    3131    """A batch processor for ICustomer objects.
    3232    """
    3333    util_name = 'unibencustomerprocessor'
    3434    grok.name(util_name)
    35     name = _('Skeleton Customer Processor')
    36     iface = ISkeletonCustomer
     35    name = _('Uniben Customer Processor')
     36    iface = IUnibenCustomer
    3737
    3838
    39 class SkeletonCustomerDocumentProcessor(CustomerDocumentProcessorBase):
    40     """A batch processor for ISkeletonCustomerDocument objects.
     39class UnibenCustomerDocumentProcessor(CustomerDocumentProcessorBase):
     40    """A batch processor for IUnibenCustomerDocument objects.
    4141    """
    4242    util_name = 'unibencustomerdocumentprocessor'
    4343    grok.name(util_name)
    44     name = _('Skeleton Customer Document Processor')
    45     iface = ISkeletonCustomerDocument
    46     factory_name = 'waeup.SkeletonCustomerDocument'
     44    name = _('Uniben Customer Document Processor')
     45    iface = IUnibenCustomerDocument
     46    factory_name = 'waeup.UnibenCustomerDocument'
    4747
    4848
    49 class SkeletonContractProcessor(ContractProcessorBase):
    50     """A batch processor for ISkeletonContract objects.
     49class UnibenContractProcessor(ContractProcessorBase):
     50    """A batch processor for IUnibenContract objects.
    5151    """
    5252    util_name = 'unibencontractprocessor'
    5353    grok.name(util_name)
    54     name = _('Skeleton Customer Contract Processor')
    55     iface = ISkeletonContract
    56     factory_name = 'waeup.SkeletonContract'
     54    name = _('Uniben Customer Contract Processor')
     55    iface = IUnibenContract
     56    factory_name = 'waeup.UnibenContract'
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/contracts.py

    r14178 r14181  
    2828from ikobacustom.uniben.interfaces import MessageFactory as _
    2929from ikobacustom.uniben.customers.interfaces import (
    30     ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess,
    31     ISkeletonContractOfficialUse)
     30    IUnibenContract, IUnibenContractEdit, IUnibenContractProcess,
     31    IUnibenContractOfficialUse)
    3232
    3333
    34 class SkeletonContract(ContractBase):
     34class UnibenContract(ContractBase):
    3535    """This is a sample contract.
    3636    """
    3737
    3838    grok.implements(
    39         ISkeletonContractProcess,
    40         ISkeletonContract,
    41         ISkeletonContractEdit,
     39        IUnibenContractProcess,
     40        IUnibenContract,
     41        IUnibenContractEdit,
    4242        ICustomerNavigation)
    4343
    4444    contract_category = 'sample'
    4545
    46     form_fields_interface = ISkeletonContract
     46    form_fields_interface = IUnibenContract
    4747
    48     edit_form_fields_interface = ISkeletonContractEdit
     48    edit_form_fields_interface = IUnibenContractEdit
    4949
    50     ou_form_fields_interface = ISkeletonContractOfficialUse
     50    ou_form_fields_interface = IUnibenContractOfficialUse
    5151
    52     check_docs_interface = ISkeletonContract
     52    check_docs_interface = IUnibenContract
    5353
    54 SkeletonContract = attrs_to_fields(SkeletonContract)
     54UnibenContract = attrs_to_fields(UnibenContract)
    5555
    5656
    5757# Contracts must be importable. So we might need a factory.
    58 class SkeletonContractFactory(grok.GlobalUtility):
     58class UnibenContractFactory(grok.GlobalUtility):
    5959    """A factory for contracts.
    6060    """
    6161    grok.implements(IFactory)
    62     grok.name(u'waeup.SkeletonContract')
     62    grok.name(u'waeup.UnibenContract')
    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 UnibenContract(*args, **kw)
    6868
    6969    def getInterfaces(self):
    70         return implementedBy(SkeletonContract)
     70        return implementedBy(UnibenContract)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/customer.py

    r14178 r14181  
    2525from waeup.ikoba.customers.customer import Customer
    2626from waeup.ikoba.customers.interfaces import ICustomerNavigation
    27 from ikobacustom.uniben.customers.interfaces import ISkeletonCustomer
     27from ikobacustom.uniben.customers.interfaces import IUnibenCustomer
    2828from ikobacustom.uniben.interfaces import MessageFactory as _
    2929
    3030
    31 class SkeletonCustomer(Customer):
     31class UnibenCustomer(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(IUnibenCustomer, ICustomerNavigation)
     36    grok.provides(IUnibenCustomer)
    3737
    38     form_fields_interface = ISkeletonCustomer
     38    form_fields_interface = IUnibenCustomer
    3939
    40 SkeletonCustomer = attrs_to_fields(SkeletonCustomer)
     40UnibenCustomer = attrs_to_fields(UnibenCustomer)
    4141
    4242
    43 class SkeletonCustomerFactory(grok.GlobalUtility):
     43class UnibenCustomerFactory(grok.GlobalUtility):
    4444    """A factory for customers.
    4545    """
     
    5050
    5151    def __call__(self, *args, **kw):
    52         return SkeletonCustomer()
     52        return UnibenCustomer()
    5353
    5454    def getInterfaces(self):
    55         return implementedBy(SkeletonCustomer)
     55        return implementedBy(UnibenCustomer)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/documents.py

    r14178 r14181  
    2626from waeup.ikoba.customers.documents import CustomerDocumentBase
    2727from ikobacustom.uniben.interfaces import MessageFactory as _
    28 from ikobacustom.uniben.customers.interfaces import ISkeletonCustomerDocument
     28from ikobacustom.uniben.customers.interfaces import IUnibenCustomerDocument
    2929
    3030
    31 class SkeletonCustomerDocument(CustomerDocumentBase):
     31class UnibenCustomerDocument(CustomerDocumentBase):
    3232    """This is a sample customer document.
    3333    """
    3434
    35     grok.implements(ISkeletonCustomerDocument, ICustomerNavigation)
    36     grok.provides(ISkeletonCustomerDocument)
     35    grok.implements(IUnibenCustomerDocument, ICustomerNavigation)
     36    grok.provides(IUnibenCustomerDocument)
    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 = IUnibenCustomerDocument
    4545
    46 SkeletonCustomerDocument = attrs_to_fields(SkeletonCustomerDocument)
     46UnibenCustomerDocument = attrs_to_fields(UnibenCustomerDocument)
    4747
    4848
    4949# Customer documents must be importable. So we need a factory.
    50 class SkeletonCustomerDocumentFactory(grok.GlobalUtility):
     50class UnibenCustomerDocumentFactory(grok.GlobalUtility):
    5151    """A factory for customer documents.
    5252    """
    5353    grok.implements(IFactory)
    54     grok.name(u'waeup.SkeletonCustomerDocument')
     54    grok.name(u'waeup.UnibenCustomerDocument')
    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 UnibenCustomerDocument(*args, **kw)
    6060
    6161    def getInterfaces(self):
    62         return implementedBy(SkeletonCustomerDocument)
     62        return implementedBy(UnibenCustomerDocument)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/export.py

    r14178 r14181  
    2222    CustomerExporter, CustomerDocumentExporterBase, ContractExporterBase)
    2323from ikobacustom.uniben.customers.interfaces import (
    24     ISkeletonCustomer, ISkeletonCustomerDocument, ISkeletonContractProcess)
     24    IUnibenCustomer, IUnibenCustomerDocument, IUnibenContractProcess)
    2525from ikobacustom.uniben.interfaces import MessageFactory as _
    2626
    27 class SkeletonCustomerExporter(CustomerExporter):
     27class UnibenCustomerExporter(CustomerExporter):
    2828    """Exporter for Customers.
    2929    """
    30     iface = ISkeletonCustomer
    31     title = _(u'Skeleton Customers')
     30    iface = IUnibenCustomer
     31    title = _(u'Uniben Customers')
    3232
    3333
    34 class SkeletonCustomerDocumentExporter(CustomerDocumentExporterBase):
     34class UnibenCustomerDocumentExporter(CustomerDocumentExporterBase):
    3535    """Exporter for documents.
    3636    """
    3737    grok.name('unibencustomerdocuments')
    38     iface = ISkeletonCustomerDocument
    39     title = _(u'Skeleton Customer Documents')
    40     class_name = 'SkeletonCustomerDocument'
     38    iface = IUnibenCustomerDocument
     39    title = _(u'Uniben Customer Documents')
     40    class_name = 'UnibenCustomerDocument'
    4141
    4242
    43 class SkeletonContractExporter(ContractExporterBase):
     43class UnibenContractExporter(ContractExporterBase):
    4444    """Exporter for Contract instances.
    4545    """
    4646    grok.name('unibencontracts')
    47     iface = ISkeletonContractProcess
    48     title = _(u'Skeleton Customer Contracts')
    49     class_name = 'SkeletonContract'
     47    iface = IUnibenContractProcess
     48    title = _(u'Uniben Customer Contracts')
     49    class_name = 'UnibenContract'
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/fileviewlets.py

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

    r14178 r14181  
    2727
    2828
    29 class ISkeletonCustomer(ICustomer):
     29class IUnibenCustomer(ICustomer):
    3030    """Representation of a customer.
    3131
     
    3535
    3636
    37 class ISkeletonCustomerDocument(ICustomerDocument):
     37class IUnibenCustomerDocument(ICustomerDocument):
    3838    """A customer document.
    3939
     
    4242# Customer contract interfaces
    4343
    44 class ISkeletonContract(IContract):
     44class IUnibenContract(IContract):
    4545    """A customer contract sample with document attached.
    4646
     
    5353        )
    5454
    55 class ISkeletonContractOfficialUse(IIkobaObject):
     55class IUnibenContractOfficialUse(IIkobaObject):
    5656    """Interface for editing official use data.
    5757
     
    6363        )
    6464
    65 class ISkeletonContractProcess(ISkeletonContract, ISkeletonContractOfficialUse):
     65class IUnibenContractProcess(IUnibenContract, IUnibenContractOfficialUse):
    6666    """Interface for processing contract data.
    6767    """
     
    7575        )
    7676
    77 class ISkeletonContractEdit(ISkeletonContract):
     77class IUnibenContractEdit(IUnibenContract):
    7878    """Interface for editing sample contract data by customers.
    7979
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_browser.py

    r14178 r14181  
    3131from waeup.ikoba.customers.tests.test_browser import CustomersFullSetup
    3232from ikobacustom.uniben.customers.export import (
    33     SkeletonCustomerExporter,
    34     SkeletonCustomerDocumentExporter,
    35     SkeletonContractExporter)
     33    UnibenCustomerExporter,
     34    UnibenCustomerDocumentExporter,
     35    UnibenContractExporter)
    3636from ikobacustom.uniben.customers.batching import (
    37     SkeletonCustomerProcessor,
    38     SkeletonCustomerDocumentProcessor,
    39     SkeletonContractProcessor)
     37    UnibenCustomerProcessor,
     38    UnibenCustomerDocumentProcessor,
     39    UnibenContractProcessor)
    4040from ikobacustom.uniben.testing import FunctionalLayer, samples_dir
    4141
     
    6161        IWorkflowState(customer).setState('started')
    6262        self.app['customers'].addCustomer(customer)
    63         document = createObject(u'waeup.SkeletonCustomerDocument')
     63        document = createObject(u'waeup.UnibenCustomerDocument')
    6464        document.title = u'My first document'
    6565        customer['documents'].addDocument(document)
    66         contract = createObject(u'waeup.SkeletonContract')
     66        contract = createObject(u'waeup.UnibenContract')
    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 = UnibenCustomerExporter()
    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 = UnibenCustomerProcessor()
    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 = UnibenCustomerDocumentExporter()
    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            'UnibenCustomerDocument,%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 = UnibenCustomerDocumentProcessor()
    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,UnibenCustomerDocument,%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 = UnibenContractExporter()
    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            'UnibenContract,,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 = UnibenContractProcessor()
    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            'UnibenContract,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.UnibenCustomerDocument'
     224        self._contract_factory = 'waeup.UnibenContract'
    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.UnibenCustomerDocument'
     307        self._contract_factory = 'waeup.UnibenContract'
    308308        return
    309309
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_contract.py

    r14178 r14181  
    2929
    3030from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    31 from ikobacustom.uniben.customers.contracts import SkeletonContract
    32 from ikobacustom.uniben.customers.interfaces import ISkeletonContract
     31from ikobacustom.uniben.customers.contracts import UnibenContract
     32from ikobacustom.uniben.customers.interfaces import IUnibenContract
    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(IUnibenContract, UnibenContract)
     41        verify.verifyClass(ICustomerNavigation, UnibenContract)
     42        verify.verifyObject(IUnibenContract, UnibenContract())
     43        verify.verifyObject(ICustomerNavigation, UnibenContract())
    4444        return
    4545
    4646    def test_addContract(self):
    4747        container = ContractsContainer()
    48         contract = createObject(u'waeup.SkeletonContract')
     48        contract = createObject(u'waeup.UnibenContract')
    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, 'UnibenContract')
    5454        return
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_customer.py

    r14178 r14181  
    3131
    3232from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    33 from ikobacustom.uniben.customers.customer import SkeletonCustomer
    34 from ikobacustom.uniben.customers.interfaces import ISkeletonCustomer
     33from ikobacustom.uniben.customers.customer import UnibenCustomer
     34from ikobacustom.uniben.customers.interfaces import IUnibenCustomer
    3535
    36 class SkeletonCustomerTestCase(FunctionalTestCase):
     36class UnibenCustomerTestCase(FunctionalTestCase):
    3737
    3838    layer = FunctionalLayer
    3939
    4040    def setUp(self):
    41         super(SkeletonCustomerTestCase, self).setUp()
     41        super(UnibenCustomerTestCase, 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(IUnibenCustomer, UnibenCustomer)
     55        verify.verifyClass(ICustomerNavigation, UnibenCustomer)
     56        verify.verifyObject(IUnibenCustomer, UnibenCustomer())
     57        verify.verifyObject(ICustomerNavigation, UnibenCustomer())
    5858        return
    5959
    60     def test_addSkeletonCustomer(self):
     60    def test_addUnibenCustomer(self):
    6161        customer = createObject(u'waeup.Customer')
    62         verify.verifyObject(ISkeletonCustomer, customer)
     62        verify.verifyObject(IUnibenCustomer, 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(UnibenCustomerTestCase, self).tearDown()
    7171        return
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/tests/test_document.py

    r14178 r14181  
    2929
    3030from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    31 from ikobacustom.uniben.customers.documents import SkeletonCustomerDocument
    32 from ikobacustom.uniben.customers.interfaces import ISkeletonCustomerDocument
     31from ikobacustom.uniben.customers.documents import UnibenCustomerDocument
     32from ikobacustom.uniben.customers.interfaces import IUnibenCustomerDocument
    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(IUnibenCustomerDocument, UnibenCustomerDocument)
     41        verify.verifyClass(ICustomerNavigation, UnibenCustomerDocument)
     42        verify.verifyObject(IUnibenCustomerDocument, UnibenCustomerDocument())
     43        verify.verifyObject(ICustomerNavigation, UnibenCustomerDocument())
    4444        return
    4545
    4646    def test_addDocument(self):
    4747        container = CustomerDocumentsContainer()
    48         document = createObject(u'waeup.SkeletonCustomerDocument')
     48        document = createObject(u'waeup.UnibenCustomerDocument')
    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, 'UnibenCustomerDocument')
    5454        return
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/utils.py

    r14178 r14181  
    2727from ikobacustom.uniben.interfaces import MessageFactory as _
    2828
    29 class SkeletonCustomersUtils(CustomersUtils):
     29class UnibenCustomersUtils(CustomersUtils):
    3030    """A collection of methods subject to customization.
    3131    """
     
    4747        #'CustomerPDFDocument': _('PDF Document'),
    4848
    49         'SkeletonCustomerDocument': _('Skeleton Document'),
     49        'UnibenCustomerDocument': _('Uniben Document'),
    5050        }
    5151
     
    5353        #'SampleContract': _('Sample Contract'),
    5454
    55         'SkeletonContract': _('Skeleton Contract'),
     55        'UnibenContract': _('Uniben Contract'),
    5656        }
    5757
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/__init__.py

    r14178 r14181  
    22"""
    33# Make this a package.
    4 from ikobacustom.uniben.documents.document import SkeletonDocument
     4from ikobacustom.uniben.documents.document import UnibenDocument
    55
    66__all__ = [
    7     'SkeletonDocument',
     7    'UnibenDocument',
    88    ]
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/batching.py

    r14178 r14181  
    2020import grok
    2121from waeup.ikoba.documents.batching import DocumentProcessorBase
    22 from ikobacustom.uniben.documents.interfaces import ISkeletonDocument
     22from ikobacustom.uniben.documents.interfaces import IUnibenDocument
    2323from ikobacustom.uniben.interfaces import MessageFactory as _
    2424
    2525
    26 class SkeletonDocumentProcessor(DocumentProcessorBase):
    27     """A batch processor for ISkeletonDocument objects.
     26class UnibenDocumentProcessor(DocumentProcessorBase):
     27    """A batch processor for IUnibenDocument objects.
    2828    """
    2929    util_name = 'unibendocumentprocessor'
    3030    grok.name(util_name)
    3131
    32     name = _('Skeleton Document Processor')
    33     iface = ISkeletonDocument
     32    name = _('Uniben Document Processor')
     33    iface = IUnibenDocument
    3434
    35     factory_name = 'waeup.SkeletonDocument'
     35    factory_name = 'waeup.UnibenDocument'
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/document.py

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

    r14178 r14181  
    2020import grok
    2121from waeup.ikoba.documents.export import DocumentExporterBase
    22 from ikobacustom.uniben.documents.interfaces import ISkeletonDocument
     22from ikobacustom.uniben.documents.interfaces import IUnibenDocument
    2323from ikobacustom.uniben.interfaces import MessageFactory as _
    2424
    2525
    26 class SkeletonDocumentExporter(DocumentExporterBase):
     26class UnibenDocumentExporter(DocumentExporterBase):
    2727    """Exporter for documents.
    2828    """
    2929    grok.name('unibendocuments')
    30     iface = ISkeletonDocument
    31     class_name = 'SkeletonDocument'
    32     title = _(u'Skeleton Documents')
     30    iface = IUnibenDocument
     31    class_name = 'UnibenDocument'
     32    title = _(u'Uniben Documents')
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/interfaces.py

    r14178 r14181  
    2020
    2121
    22 class ISkeletonDocument(IPublicDocument):
     22class IUnibenDocument(IPublicDocument):
    2323    """A representation of a uniben document.
    2424
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/tests/test_browser.py

    r14178 r14181  
    2727from zope.interface.verify import verifyObject, verifyClass
    2828from waeup.ikoba.documents.tests.test_batching import DocumentImportExportSetup
    29 from ikobacustom.uniben.documents.document import SkeletonDocument
    30 from ikobacustom.uniben.documents.export import SkeletonDocumentExporter
    31 from ikobacustom.uniben.documents.batching import SkeletonDocumentProcessor
     29from ikobacustom.uniben.documents.document import UnibenDocument
     30from ikobacustom.uniben.documents.export import UnibenDocumentExporter
     31from ikobacustom.uniben.documents.batching import UnibenDocumentProcessor
    3232from ikobacustom.uniben.testing import FunctionalLayer
    3333
     
    3838
    3939    def setup_for_export(self):
    40         document = SkeletonDocument()
     40        document = UnibenDocument()
    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 = UnibenDocumentExporter()
    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            'UnibenDocument,,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 = UnibenDocumentProcessor()
    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 = UnibenDocumentProcessor()
    8282        result = processor.doImport(
    8383            self.outfile,
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/tests/test_document.py

    r14178 r14181  
    2424
    2525from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    26 from ikobacustom.uniben.documents.document import SkeletonDocument
    27 from ikobacustom.uniben.documents.interfaces import ISkeletonDocument
     26from ikobacustom.uniben.documents.document import UnibenDocument
     27from ikobacustom.uniben.documents.interfaces import IUnibenDocument
    2828
    29 class SkeletonDocumentTestCase(FunctionalTestCase):
     29class UnibenDocumentTestCase(FunctionalTestCase):
    3030
    3131    layer = FunctionalLayer
     
    3535        self.assertTrue(
    3636            verifyClass(
    37                 ISkeletonDocument, SkeletonDocument)
     37                IUnibenDocument, UnibenDocument)
    3838            )
    3939        self.assertTrue(
    4040            verifyObject(
    41                 ISkeletonDocument, SkeletonDocument())
     41                IUnibenDocument, UnibenDocument())
    4242            )
    4343        return
    4444
    45     def test_addSkeletonDocument(self):
     45    def test_addUnibenDocument(self):
    4646        container = DocumentsContainer()
    47         document = createObject(u'waeup.SkeletonDocument')
     47        document = createObject(u'waeup.UnibenDocument')
    4848        document.document_id = u'DOC1'
    4949        container.addDocument(document)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/utils.py

    r14178 r14181  
    2222
    2323
    24 class SkeletonDocumentsUtils(DocumentsUtils):
     24class UnibenDocumentsUtils(DocumentsUtils):
    2525    """A collection of methods subject to customization.
    2626    """
     
    3030        'HTMLDocument': _('HTML Document'),
    3131        'RESTDocument': _('REST Document'),
    32         'SkeletonDocument': _('Skeleton Document'),
     32        'UnibenDocument': _('Uniben Document'),
    3333        }
    3434
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/__init__.py

    r14178 r14181  
    22"""
    33# Make this a package.
    4 from ikobacustom.uniben.products.product import SkeletonProduct
     4from ikobacustom.uniben.products.product import UnibenProduct
    55
    66__all__ = [
    7     'SkeletonProduct',
     7    'UnibenProduct',
    88    ]
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/batching.py

    r14178 r14181  
    2020import grok
    2121from waeup.ikoba.products.batching import ProductProcessor
    22 from ikobacustom.uniben.products.interfaces import ISkeletonProduct
     22from ikobacustom.uniben.products.interfaces import IUnibenProduct
    2323from ikobacustom.uniben.interfaces import MessageFactory as _
    2424
    25 class SkeletonProductProcessor(ProductProcessor):
     25class UnibenProductProcessor(ProductProcessor):
    2626
    27     iface = ISkeletonProduct
    28     name = _('Skeleton Product Processor')
     27    iface = IUnibenProduct
     28    name = _('Uniben Product Processor')
    2929    util_name = 'unibenproductprocessor'
    3030    grok.name(util_name)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/export.py

    r14178 r14181  
    2121from waeup.ikoba.utils.helpers import iface_names
    2222from waeup.ikoba.products.export import ProductExporter
    23 from ikobacustom.uniben.products.interfaces import ISkeletonProduct
     23from ikobacustom.uniben.products.interfaces import IUnibenProduct
    2424from ikobacustom.uniben.interfaces import MessageFactory as _
    2525
    2626
    27 class SkeletonProductExporter(ProductExporter):
     27class UnibenProductExporter(ProductExporter):
    2828    """Exporter for products.
    2929    """
    3030
    31     fields = tuple(sorted(iface_names(ISkeletonProduct))) + (
     31    fields = tuple(sorted(iface_names(IUnibenProduct))) + (
    3232        'users_with_local_roles',)
    3333
    3434    #: The title under which this exporter will be displayed
    35     #title = _(u'Skeleton Products')
     35    #title = _(u'Uniben Products')
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/interfaces.py

    r14178 r14181  
    2020
    2121
    22 class ISkeletonProduct(IProduct):
     22class IUnibenProduct(IProduct):
    2323    """A representation of a uniben product.
    2424
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/product.py

    r14178 r14181  
    2424from waeup.ikoba.utils.helpers import attrs_to_fields
    2525from waeup.ikoba.products.product import Product
    26 from ikobacustom.uniben.products.interfaces import ISkeletonProduct
     26from ikobacustom.uniben.products.interfaces import IUnibenProduct
    2727from ikobacustom.uniben.interfaces import MessageFactory as _
    2828
    2929
    30 class SkeletonProduct(Product):
     30class UnibenProduct(Product):
    3131    """This is a product.
    3232    """
    33     grok.implements(ISkeletonProduct)
    34     grok.provides(ISkeletonProduct)
     33    grok.implements(IUnibenProduct)
     34    grok.provides(IUnibenProduct)
    3535
    36     form_fields_interface = ISkeletonProduct
     36    form_fields_interface = IUnibenProduct
    3737
    38 SkeletonProduct = attrs_to_fields(SkeletonProduct)
     38UnibenProduct = attrs_to_fields(UnibenProduct)
    3939
    4040
    41 class SkeletonProductFactory(grok.GlobalUtility):
     41class UnibenProductFactory(grok.GlobalUtility):
    4242    """A factory for products.
    4343    """
     
    4848
    4949    def __call__(self, *args, **kw):
    50         return SkeletonProduct(*args, **kw)
     50        return UnibenProduct(*args, **kw)
    5151
    5252    def getInterfaces(self):
    53         return implementedBy(SkeletonProduct)
     53        return implementedBy(UnibenProduct)
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/tests/test_browser.py

    r14178 r14181  
    2727from zope.interface.verify import verifyObject, verifyClass
    2828from waeup.ikoba.products.tests.test_batching import ProductImportExportSetup
    29 from ikobacustom.uniben.products.product import SkeletonProduct
    30 from ikobacustom.uniben.products.export import SkeletonProductExporter
    31 from ikobacustom.uniben.products.batching import SkeletonProductProcessor
     29from ikobacustom.uniben.products.product import UnibenProduct
     30from ikobacustom.uniben.products.export import UnibenProductExporter
     31from ikobacustom.uniben.products.batching import UnibenProductProcessor
    3232from ikobacustom.uniben.testing import FunctionalLayer
    3333
     
    3838
    3939    def setup_for_export(self):
    40         product = SkeletonProduct()
     40        product = UnibenProduct()
    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 = UnibenProductExporter()
    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 = UnibenProductProcessor()
    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 = UnibenProductProcessor()
    8484        result = processor.doImport(
    8585            self.outfile,
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/products/tests/test_product.py

    r14178 r14181  
    2525
    2626from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    27 from ikobacustom.uniben.products.product import SkeletonProduct
    28 from ikobacustom.uniben.products.interfaces import ISkeletonProduct
     27from ikobacustom.uniben.products.product import UnibenProduct
     28from ikobacustom.uniben.products.interfaces import IUnibenProduct
    2929
    30 class SkeletonProductTestCase(FunctionalTestCase):
     30class UnibenProductTestCase(FunctionalTestCase):
    3131
    3232    layer = FunctionalLayer
     
    3636        self.assertTrue(
    3737            verifyClass(
    38                 ISkeletonProduct, SkeletonProduct)
     38                IUnibenProduct, UnibenProduct)
    3939            )
    4040        self.assertTrue(
    4141            verifyObject(
    42                 ISkeletonProduct, SkeletonProduct())
     42                IUnibenProduct, UnibenProduct())
    4343            )
    4444        return
    4545
    46     def test_addSkeletonProduct(self):
     46    def test_addUnibenProduct(self):
    4747        container = ProductsContainer()
    4848        product = createObject(u'waeup.Product')
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/utils/utils.py

    r14178 r14181  
    3333    ]
    3434
    35 class SkeletonIkobaUtils(IkobaUtils):
     35class UnibenIkobaUtils(IkobaUtils):
    3636    """A collection of methods subject to customization.
    3737    """
Note: See TracChangeset for help on using the changeset viewer.