From b8ce799b12d5be3ea0a8b568c2168857813e1ba7 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 24 Nov 2024 10:13:04 +0100 Subject: [PATCH] minor fix in organize.comment set up --- loops/organize/comment/browser.py | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/loops/organize/comment/browser.py b/loops/organize/comment/browser.py index f7efe0d..3bcdfbb 100644 --- a/loops/organize/comment/browser.py +++ b/loops/organize/comment/browser.py @@ -1,23 +1,6 @@ -# -# Copyright (c) 2014 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 -# +# loops.organize.comment.browser -""" -Definition of view classes and other browser related stuff for comments. +""" Definition of view classes and other browser related stuff for comments. """ from zope import interface, component @@ -176,7 +159,8 @@ class CreateComment(EditObject): rm = self.view.loopsRoot.getRecordManager() ts = rm.get('comments') if ts is None: - ts = addObject(rm, TrackingStorage, 'comments', trackFactory=Comment) + #ts = addObject(rm, TrackingStorage, 'comments', trackFactory=Comment) + rm['comments'] = ts = TrackingStorage(trackFactory=Comment) uid = util.getUidForObject(self.object) data = dict(subject=subject, text=text) for k in ('name', 'email'):