From d33a1a4fbcc34d21496e25a8e137b86acf363dd6 Mon Sep 17 00:00:00 2001 From: helmutm Date: Thu, 29 Jan 2009 15:02:50 +0000 Subject: [PATCH] remove obsolete 'browser' package git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3194 fd906abe-77d9-0310-91a1-e0d9ade77398 --- commerce/browser/__init__.py | 4 ---- commerce/browser/configure.zcml | 15 --------------- commerce/browser/product.py | 34 --------------------------------- commerce/product.py | 2 ++ 4 files changed, 2 insertions(+), 53 deletions(-) delete mode 100644 commerce/browser/__init__.py delete mode 100644 commerce/browser/configure.zcml delete mode 100644 commerce/browser/product.py diff --git a/commerce/browser/__init__.py b/commerce/browser/__init__.py deleted file mode 100644 index 4bc90fb..0000000 --- a/commerce/browser/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -""" -$Id$ -""" - diff --git a/commerce/browser/configure.zcml b/commerce/browser/configure.zcml deleted file mode 100644 index 6f77bb0..0000000 --- a/commerce/browser/configure.zcml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - diff --git a/commerce/browser/product.py b/commerce/browser/product.py deleted file mode 100644 index 0e7a5e9..0000000 --- a/commerce/browser/product.py +++ /dev/null @@ -1,34 +0,0 @@ -# -# Copyright (c) 2008 Helmut Merz helmutm@cy55.de -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -""" -Basic browser view classes for products. - -$Id$ -""" - -from zope import component -from zope.cachedescriptors.property import Lazy - - -class ProductView(object): - - def __init__(self, context, request): - self.context = context - self.request = request - diff --git a/commerce/product.py b/commerce/product.py index 50e9ecb..fd5281e 100644 --- a/commerce/product.py +++ b/commerce/product.py @@ -38,6 +38,7 @@ class Product(BaseObject): def __init__(self, productId, title=None): self.name = self.productId = productId self.title = title or u'unknown' + self.description = u'' self.shops = self.collection(self, 'products') self.categories = self.collection(self, 'products') self.suppliers = self.collection(self, 'products') @@ -50,6 +51,7 @@ class Category(BaseObject): def __init__(self, name, title=None): self.name = name self.title = title or u'unknown' + self.description = u'' self.shops = self.collection(self, 'categories') self.products = self.collection(self, 'categories') self.subcategories = self.collection(self, 'parentCategories')