[Zope-Checkins] CVS: Zope/lib/python/Products/ZopeTutorial - __init__.py:1.13
Jim Fulton
jim@zope.com
Tue, 20 Aug 2002 15:37:53 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZopeTutorial
In directory cvs.zope.org:/tmp/cvs-serv2491/lib/python/Products/ZopeTutorial
Modified Files:
__init__.py
Log Message:
Repaired some deficiencies in Zope's implicit installation.
- Documented FORCE_PRODUCT_LOAD
- Changed FORCE_PRODUCT_LOAD so that if it is set, it determines
whether products are installed regardless of whether ZEO_CACHE is
set. This means that you can disable product installation by setting
FORCE_PRODUCT_LOAD to an empty string even if you are not using a
ZEO persistent cache.
- Fixed the help system and Zope Tutorial product to honor
FORCE_PRODUCT_LOAD.
=== Zope/lib/python/Products/ZopeTutorial/__init__.py 1.12 => 1.13 ===
--- Zope/lib/python/Products/ZopeTutorial/__init__.py:1.12 Wed Aug 14 18:25:19 2002
+++ Zope/lib/python/Products/ZopeTutorial/__init__.py Tue Aug 20 15:37:52 2002
@@ -31,6 +31,11 @@
constructors=(TutorialTopic.addTutorialForm, TutorialTopic.addTutorial),
)
+ from App.Product import doInstall
+
+ if not doInstall():
+ return
+
# create tutorial help topics
lesson_path=os.path.join(App.Common.package_home(globals()), 'tutorial.stx')
glossary_path=os.path.join(App.Common.package_home(globals()), 'glossary.stx')