- Timestamp:
- 5 Dec 2016, 09:14:32 (8 years ago)
- Location:
- main/ikobacustom.aaue/trunk/src/ikobacustom/aaue
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/customers/customer.py
r12399 r14310 25 25 from waeup.ikoba.customers.customer import Customer 26 26 from waeup.ikoba.customers.interfaces import ICustomerNavigation 27 from ikobacustom. skeleton.customers.interfaces import ISkeletonCustomer28 from ikobacustom. skeleton.interfaces import MessageFactory as _27 from ikobacustom.aaue.customers.interfaces import IAAUECustomer 28 from ikobacustom.aaue.interfaces import MessageFactory as _ 29 29 30 30 31 class SkeletonCustomer(Customer):31 class AAUECustomer(Customer): 32 32 """This is a customer container for the various objects 33 33 owned by customers. 34 34 """ 35 grok.implements(I SkeletonCustomer, ICustomerNavigation)36 grok.provides(I SkeletonCustomer)35 grok.implements(IAAUECustomer, ICustomerNavigation) 36 grok.provides(IAAUECustomer) 37 37 38 form_fields_interface = I SkeletonCustomer38 form_fields_interface = IAAUECustomer 39 39 40 SkeletonCustomer = attrs_to_fields(SkeletonCustomer)40 AAUECustomer = attrs_to_fields(AAUECustomer) 41 41 42 42 43 class SkeletonCustomerFactory(grok.GlobalUtility):43 class AAUECustomerFactory(grok.GlobalUtility): 44 44 """A factory for customers. 45 45 """ 46 46 grok.implements(IFactory) 47 47 grok.name(u'waeup.Customer') 48 title = u"Create a new skeletoncustomer.",49 description = u"This factory instantiates new skeletoncustomer instances."48 title = u"Create a new aaue customer.", 49 description = u"This factory instantiates new aaue customer instances." 50 50 51 51 def __call__(self, *args, **kw): 52 return SkeletonCustomer()52 return AAUECustomer() 53 53 54 54 def getInterfaces(self): 55 return implementedBy( SkeletonCustomer)55 return implementedBy(AAUECustomer)
Note: See TracChangeset for help on using the changeset viewer.