Ignore:
Timestamp:
3 Jan 2015, 07:38:07 (10 years ago)
Author:
Henrik Bettermann
Message:

Replace 'skeleton' by 'pcn'.

Location:
main/ikobacustom.pcn/trunk
Files:
10 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk

    • Property svn:global-ignores set to
      bin
      develop-eggs
      parts
      sources
      var
  • main/ikobacustom.pcn/trunk/src

    • Property svn:global-ignores set to
      ikobacustom.pcn.egg-info
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/__init__.py

    r12269 r12371  
    22"""
    33# Make this a package.
    4 from ikobacustom.skeleton.documents.document import SkeletonDocument
     4from ikobacustom.pcn.documents.document import PCNDocument
    55
    66__all__ = [
    7     'SkeletonDocument',
     7    'PCNDocument',
    88    ]
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/batching.py

    r12274 r12371  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Batch processing for skeleton documents.
     18"""Batch processing for pcn 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.pcn.documents.interfaces import IPCNDocument
     23from ikobacustom.pcn.interfaces import MessageFactory as _
    2424
    2525
    26 class SkeletonDocumentProcessor(DocumentProcessorBase):
    27     """A batch processor for ISkeletonDocument objects.
     26class PCNDocumentProcessor(DocumentProcessorBase):
     27    """A batch processor for IPCNDocument objects.
    2828    """
    29     util_name = 'skeletondocumentprocessor'
     29    util_name = 'pcndocumentprocessor'
    3030    grok.name(util_name)
    3131
    32     name = _('Skeleton Document Processor')
    33     iface = ISkeletonDocument
     32    name = _('PCN Document Processor')
     33    iface = IPCNDocument
    3434
    35     factory_name = 'waeup.SkeletonDocument'
     35    factory_name = 'waeup.PCNDocument'
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/document.py

    r12270 r12371  
    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.pcn.documents.interfaces import IPCNDocument
     27from ikobacustom.pcn.interfaces import MessageFactory as _
    2828
    2929
    30 class SkeletonDocument(PublicDocumentBase):
     30class PCNDocument(PublicDocumentBase):
    3131    """This is a document.
    3232    """
    33     grok.implements(ISkeletonDocument)
    34     grok.provides(ISkeletonDocument)
     33    grok.implements(IPCNDocument)
     34    grok.provides(IPCNDocument)
    3535
    36 SkeletonDocument = attrs_to_fields(SkeletonDocument)
     36PCNDocument = attrs_to_fields(PCNDocument)
    3737
    3838
    39 class SkeletonDocumentFactory(grok.GlobalUtility):
     39class PCNDocumentFactory(grok.GlobalUtility):
    4040    """A factory for documents.
    4141    """
    4242    grok.implements(IFactory)
    43     grok.name(u'waeup.SkeletonDocument')
     43    grok.name(u'waeup.PCNDocument')
    4444    title = u"Create a new document.",
    45     description = u"This factory instantiates new skeleton documents."
     45    description = u"This factory instantiates new pcn documents."
    4646
    4747    def __call__(self, *args, **kw):
    48         return SkeletonDocument(*args, **kw)
     48        return PCNDocument(*args, **kw)
    4949
    5050    def getInterfaces(self):
    51         return implementedBy(SkeletonDocument)
     51        return implementedBy(PCNDocument)
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/export.py

    r12292 r12371  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Exporters for skeleton documents.
     18"""Exporters for pcn 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.pcn.documents.interfaces import IPCNDocument
     23from ikobacustom.pcn.interfaces import MessageFactory as _
    2424
    2525
    26 class SkeletonDocumentExporter(DocumentExporterBase):
     26class PCNDocumentExporter(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('pcndocuments')
     30    iface = IPCNDocument
     31    class_name = 'PCNDocument'
     32    title = _(u'PCN Documents')
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/interfaces.py

    r12292 r12371  
    1717##
    1818from waeup.ikoba.documents.interfaces import IPublicDocument
    19 from ikobacustom.skeleton.interfaces import MessageFactory as _
     19from ikobacustom.pcn.interfaces import MessageFactory as _
    2020
    2121
    22 class ISkeletonDocument(IPublicDocument):
    23     """A representation of a skeleton document.
     22class IPCNDocument(IPublicDocument):
     23    """A representation of a pcn document.
    2424
    2525    """
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/tests/test_browser.py

    r12290 r12371  
    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.pcn.documents.document import PCNDocument
     30from ikobacustom.pcn.documents.export import PCNDocumentExporter
     31from ikobacustom.pcn.documents.batching import PCNDocumentProcessor
     32from ikobacustom.pcn.testing import FunctionalLayer
    3333
    3434
     
    3838
    3939    def setup_for_export(self):
    40         document = SkeletonDocument()
     40        document = PCNDocument()
    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 = PCNDocumentExporter()
    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            'PCNDocument,,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 = PCNDocumentProcessor()
    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 = PCNDocumentProcessor()
    8282        result = processor.doImport(
    8383            self.outfile,
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/tests/test_document.py

    r12292 r12371  
    1717##
    1818"""
    19 Tests for skeleton documents.
     19Tests for pcn 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.pcn.testing import (FunctionalLayer, FunctionalTestCase)
     26from ikobacustom.pcn.documents.document import PCNDocument
     27from ikobacustom.pcn.documents.interfaces import IPCNDocument
    2828
    29 class SkeletonDocumentTestCase(FunctionalTestCase):
     29class PCNDocumentTestCase(FunctionalTestCase):
    3030
    3131    layer = FunctionalLayer
     
    3535        self.assertTrue(
    3636            verifyClass(
    37                 ISkeletonDocument, SkeletonDocument)
     37                IPCNDocument, PCNDocument)
    3838            )
    3939        self.assertTrue(
    4040            verifyObject(
    41                 ISkeletonDocument, SkeletonDocument())
     41                IPCNDocument, PCNDocument())
    4242            )
    4343        return
    4444
    45     def test_addSkeletonDocument(self):
     45    def test_addPCNDocument(self):
    4646        container = DocumentsContainer()
    47         document = createObject(u'waeup.SkeletonDocument')
     47        document = createObject(u'waeup.PCNDocument')
    4848        document.document_id = u'DOC1'
    4949        container.addDocument(document)
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/documents/utils.py

    r12292 r12371  
    1919"""
    2020from waeup.ikoba.documents.utils import DocumentsUtils
    21 from ikobacustom.skeleton.interfaces import MessageFactory as _
     21from ikobacustom.pcn.interfaces import MessageFactory as _
    2222
    2323
    24 class SkeletonDocumentsUtils(DocumentsUtils):
     24class PCNDocumentsUtils(DocumentsUtils):
    2525    """A collection of methods subject to customization.
    2626    """
     
    2929        'PDFDocument': _('PDF Document'),
    3030        'HTMLDocument': _('HTML Document'),
    31         'SkeletonDocument': _('Skeleton Document'),
     31        'PCNDocument': _('PCN Document'),
    3232        }
    3333
Note: See TracChangeset for help on using the changeset viewer.