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:
3 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/customers/contracts.py

    r12335 r12371  
    2626from waeup.ikoba.customers.interfaces import ICustomerNavigation
    2727from waeup.ikoba.customers.contracts import ContractBase
    28 from ikobacustom.skeleton.interfaces import MessageFactory as _
    29 from ikobacustom.skeleton.customers.interfaces import (
    30     ISkeletonContract, ISkeletonContractEdit, ISkeletonContractProcess)
     28from ikobacustom.pcn.interfaces import MessageFactory as _
     29from ikobacustom.pcn.customers.interfaces import (
     30    IPCNContract, IPCNContractEdit, IPCNContractProcess)
    3131
    3232
    33 class SkeletonContract(ContractBase):
     33class PCNContract(ContractBase):
    3434    """This is a sample contract.
    3535    """
    3636
    3737    grok.implements(
    38         ISkeletonContractProcess,
    39         ISkeletonContract,
    40         ISkeletonContractEdit,
     38        IPCNContractProcess,
     39        IPCNContract,
     40        IPCNContractEdit,
    4141        ICustomerNavigation)
    4242
    4343    contract_category = 'sample'
    4444
    45     form_fields_interface = ISkeletonContract
     45    form_fields_interface = IPCNContract
    4646
    47     edit_form_fields_interface = ISkeletonContractEdit
     47    edit_form_fields_interface = IPCNContractEdit
    4848
    49     check_docs_interface = ISkeletonContract
     49    check_docs_interface = IPCNContract
    5050
    51 SkeletonContract = attrs_to_fields(SkeletonContract)
     51PCNContract = attrs_to_fields(PCNContract)
    5252
    5353
    5454# Contracts must be importable. So we might need a factory.
    55 class SkeletonContractFactory(grok.GlobalUtility):
     55class PCNContractFactory(grok.GlobalUtility):
    5656    """A factory for contracts.
    5757    """
    5858    grok.implements(IFactory)
    59     grok.name(u'waeup.SkeletonContract')
     59    grok.name(u'waeup.PCNContract')
    6060    title = u"Create a new contract.",
    6161    description = u"This factory instantiates new sample contract instances."
    6262
    6363    def __call__(self, *args, **kw):
    64         return SkeletonContract(*args, **kw)
     64        return PCNContract(*args, **kw)
    6565
    6666    def getInterfaces(self):
    67         return implementedBy(SkeletonContract)
     67        return implementedBy(PCNContract)
Note: See TracChangeset for help on using the changeset viewer.