diff --git a/commerce/base.py b/commerce/base.py index 08ee9d7..76336e0 100644 --- a/commerce/base.py +++ b/commerce/base.py @@ -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): diff --git a/commerce/product.py b/commerce/product.py index cfa8a5c..6fca2fb 100644 --- a/commerce/product.py +++ b/commerce/product.py @@ -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 = {}