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

Renaming 2

File:
1 edited

Legend:

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