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:
1 edited
1 moved

Legend:

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