- Timestamp:
- 3 Jan 2015, 07:38:07 (10 years ago)
- 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
-
Property
svn:global-ignores
set to
-
main/ikobacustom.pcn/trunk/src
-
Property
svn:global-ignores
set to
ikobacustom.pcn.egg-info
-
Property
svn:global-ignores
set to
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/customer.py
r12272 r12371 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.pcn.customers.interfaces import IPCNCustomer 28 from ikobacustom.pcn.interfaces import MessageFactory as _ 29 29 30 30 31 class SkeletonCustomer(Customer):31 class PCNCustomer(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(IPCNCustomer, ICustomerNavigation) 36 grok.provides(IPCNCustomer) 37 37 38 SkeletonCustomer = attrs_to_fields(SkeletonCustomer)38 PCNCustomer = attrs_to_fields(PCNCustomer) 39 39 40 40 41 class SkeletonCustomerFactory(grok.GlobalUtility):41 class PCNCustomerFactory(grok.GlobalUtility): 42 42 """A factory for customers. 43 43 """ 44 44 grok.implements(IFactory) 45 45 grok.name(u'waeup.Customer') 46 title = u"Create a new skeleton customer.",47 description = u"This factory instantiates new skeleton customer instances."46 title = u"Create a new pcn customer.", 47 description = u"This factory instantiates new pcn customer instances." 48 48 49 49 def __call__(self, *args, **kw): 50 return SkeletonCustomer()50 return PCNCustomer() 51 51 52 52 def getInterfaces(self): 53 return implementedBy( SkeletonCustomer)53 return implementedBy(PCNCustomer)
Note: See TracChangeset for help on using the changeset viewer.