- Timestamp:
- 14 Feb 2015, 08:55:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/contracts.py
r12611 r12615 56 56 IAPPITContractProcess, 57 57 IAPPITContractOfficialUse, 58 IRPTContract, 59 IRPTContractEdit, 60 IRPTContractProcess, 61 IRPTContractOfficialUse, 58 62 ) 59 63 … … 324 328 return implementedBy(APPITContract) 325 329 330 331 class 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 351 RPTContract = attrs_to_fields(RPTContract) 352 353 354 class 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.