Commit 5e7032bf authored by matt@zope.com's avatar matt@zope.com

Change initial example population to not verify the import; users haven't

been set up yet.
parent af61e746
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.172 2001/11/26 18:42:03 evan Exp $''' $Id: Application.py,v 1.173 2001/11/26 20:14:24 matt Exp $'''
__version__='$Revision: 1.172 $'[11:-2] __version__='$Revision: 1.173 $'[11:-2]
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_ import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
import time, traceback, os, string, Products import time, traceback, os, string, Products
...@@ -444,7 +444,7 @@ def initialize(app): ...@@ -444,7 +444,7 @@ def initialize(app):
hasattr(app, '_Zope25_examples_have_been_added'): hasattr(app, '_Zope25_examples_have_been_added'):
examples_path = os.path.join(Globals.data_dir, 'Examples.zexp') examples_path = os.path.join(Globals.data_dir, 'Examples.zexp')
if os.path.isfile(examples_path): if os.path.isfile(examples_path):
app._importObjectFromFile(examples_path) app._importObjectFromFile(examples_path, verify=0)
app._Zope25_examples_have_been_added=1 app._Zope25_examples_have_been_added=1
get_transaction().note('Added Examples folder') get_transaction().note('Added Examples folder')
get_transaction().commit() get_transaction().commit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment