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

Renaming and port setting.

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

Legend:

Unmodified
Added
Removed
  • 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')
Note: See TracChangeset for help on using the changeset viewer.