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

Legend:

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