Ignore:
Timestamp:
14 Feb 2015, 08:55:35 (10 years ago)
Author:
Henrik Bettermann
Message:

Add Registration as a Pharmacy Technician contract.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/contracts.py

    r12611 r12615  
    5656    IAPPITContractProcess,
    5757    IAPPITContractOfficialUse,
     58    IRPTContract,
     59    IRPTContractEdit,
     60    IRPTContractProcess,
     61    IRPTContractOfficialUse,
    5862    )
    5963
     
    324328        return implementedBy(APPITContract)
    325329
     330
     331class RPTContract(ContractBase):
     332    """Registration as a Pharmacy Technician contract.
     333    """
     334
     335    grok.implements(
     336        IRPTContractProcess,
     337        IRPTContract,
     338        IRPTContractEdit,
     339        ICustomerNavigation)
     340
     341    contract_category = 'rpt'
     342
     343    form_fields_interface = IRPTContract
     344
     345    edit_form_fields_interface = IRPTContractEdit
     346
     347    ou_form_fields_interface = IRPTContractOfficialUse
     348
     349    check_docs_interface = IRPTContract
     350
     351RPTContract = attrs_to_fields(RPTContract)
     352
     353
     354class RPTContractFactory(grok.GlobalUtility):
     355    """A factory for contracts.
     356    """
     357    grok.implements(IFactory)
     358    grok.name(u'waeup.RPTContract')
     359    title = u"Create a new license contract.",
     360    description = u"This factory instantiates new contract instances."
     361
     362    def __call__(self, *args, **kw):
     363        return RPTContract(*args, **kw)
     364
     365    def getInterfaces(self):
     366        return implementedBy(RPTContract)
     367
Note: See TracChangeset for help on using the changeset viewer.