[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.191

Chris McDonough chrism@zope.com
Tue, 24 Jun 2003 09:30:30 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv28743/lib/python/OFS

Modified Files:
	Application.py 
Log Message:
Merge of Jamie Heilman's work on Collector 956 (dont install examples automagically).


=== Zope/lib/python/OFS/Application.py 1.190 => 1.191 ===
--- Zope/lib/python/OFS/Application.py:1.190	Sat May 17 10:48:49 2003
+++ Zope/lib/python/OFS/Application.py	Tue Jun 24 09:30:29 2003
@@ -369,26 +369,6 @@
         get_transaction().commit()
         del sdm
 
-    # Ensure that there's an Examples folder with examples.
-    # However, make sure that if the examples have been added already
-    # and then deleted that we don't add them again.
-
-    if not hasattr(app, 'Examples') and not \
-       hasattr(app, '_Zope25_examples_have_been_added'):
-
-        import App.config
-        cfg = App.config.getConfiguration()
-        examples_path = os.path.join(cfg.zopehome, 'import',
-                                     'Examples.zexp')
-        if os.path.isfile(examples_path):
-            app._importObjectFromFile(examples_path, verify=0)
-            app._Zope25_examples_have_been_added=1
-            get_transaction().note('Added Examples folder')
-            get_transaction().commit()
-        else:
-            LOG('Zope Default Object Creation', INFO,
-                '%s examples import file could not be found.' % examples_path)
-
     # b/c: Ensure that Owner role exists.
     if hasattr(app, '__ac_roles__') and not ('Owner' in app.__ac_roles__):
         app.__ac_roles__=app.__ac_roles__ + ('Owner',)