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:
helmutm 2008-08-10 09:37:48 +00:00
parent 1ff28acd31
commit 7e7012ccd4
2 changed files with 2 additions and 8 deletions

View file

@ -31,12 +31,9 @@ class Shop(object):
implements(IShop)
title = u'Shop'
def __init__(self, name, title=None):
self.name = name
if title is not None:
self.title = title
self.title = title or u'Shop'
self.products = {}
def addProduct(self, product):

View file

@ -31,11 +31,8 @@ class Product(object):
implements(IProduct)
title = u'Product'
def __init__(self, name, title=None):
self.name = name
if title is not None:
self.title = title
self.title = title or u'Product'
self.shops = {}