[CMF-checkins] CVS: CMF/CMFTopic - __init__.py:1.15
Yvo Schubbe
y.2004_ at wcm-solutions.de
Sun May 16 11:39:02 EDT 2004
Update of /cvs-repository/CMF/CMFTopic
In directory cvs.zope.org:/tmp/cvs-serv21474/CMFTopic
Modified Files:
__init__.py
Log Message:
- removed redundant registerDirectory call
- whitespace cleanup
=== CMF/CMFTopic/__init__.py 1.14 => 1.15 ===
--- CMF/CMFTopic/__init__.py:1.14 Thu Apr 29 12:13:22 2004
+++ CMF/CMFTopic/__init__.py Sun May 16 11:39:01 2004
@@ -1,25 +1,27 @@
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
""" Topic: Canned catalog queries
$Id$
"""
+import sys
+
from ZClasses import createZClassForBase
from Products.CMFCore.utils import ContentInit
from Products.CMFCore.DirectoryView import registerDirectory
-
+
import Topic
import SimpleStringCriterion
import SimpleIntCriterion
@@ -28,9 +30,9 @@
import SortCriterion
from permissions import AddTopics
+
bases = ( Topic.Topic, )
-import sys
this_module = sys.modules[ __name__ ]
for base in bases:
@@ -38,11 +40,10 @@
# This is used by a script (external method) that can be run
# to set up Topics in an existing CMF Site instance.
-topic_globals =globals()
+topic_globals = globals()
# Make the skins available as DirectoryViews
registerDirectory( 'skins', globals() )
-registerDirectory( 'skins/topic', globals() )
def initialize( context ):
More information about the CMF-checkins
mailing list