fix attribute handling - no class attributes on classes that should be usable as adapters
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2800 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
1ff28acd31
commit
7e7012ccd4
2 changed files with 2 additions and 8 deletions
|
@ -31,12 +31,9 @@ class Shop(object):
|
||||||
|
|
||||||
implements(IShop)
|
implements(IShop)
|
||||||
|
|
||||||
title = u'Shop'
|
|
||||||
|
|
||||||
def __init__(self, name, title=None):
|
def __init__(self, name, title=None):
|
||||||
self.name = name
|
self.name = name
|
||||||
if title is not None:
|
self.title = title or u'Shop'
|
||||||
self.title = title
|
|
||||||
self.products = {}
|
self.products = {}
|
||||||
|
|
||||||
def addProduct(self, product):
|
def addProduct(self, product):
|
||||||
|
|
|
@ -31,11 +31,8 @@ class Product(object):
|
||||||
|
|
||||||
implements(IProduct)
|
implements(IProduct)
|
||||||
|
|
||||||
title = u'Product'
|
|
||||||
|
|
||||||
def __init__(self, name, title=None):
|
def __init__(self, name, title=None):
|
||||||
self.name = name
|
self.name = name
|
||||||
if title is not None:
|
self.title = title or u'Product'
|
||||||
self.title = title
|
|
||||||
self.shops = {}
|
self.shops = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue