[Zope-Checkins] CVS: Packages/OFS - Application.py:1.170

Evan Simpson evan@zope.com
Mon, 26 Nov 2001 10:52:07 -0500


Update of /cvs-repository/Packages/OFS
In directory cvs.zope.org:/tmp/cvs-serv16977/OFS

Modified Files:
	Application.py 
Log Message:



=== Packages/OFS/Application.py 1.169 => 1.170 ===
        hasattr(app, '_Zope25_examples_have_been_added'):
         examples_path = os.path.join(Globals.data_dir, 'Examples.zexp')
-        if os.path.isfile(os.path.join(examples_path)):
-            examples=app._p_jar.importFile(examples_path)
-            app._setObject('Examples', examples)
+        if os.path.isfile(examples_path):
+            app._importObjectFromFile(examples_path)
             app._Zope25_examples_have_been_added=1
             get_transaction().note('Added Examples folder')
             get_transaction().commit()
-            del examples
         else:
             LOG('Zope Default Object Creation', INFO,
                 '%s examples import file could not be found.' % examples_path)