[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.163
Amos Latteier
amos@zope.com
Fri, 16 Nov 2001 19:06:29 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv22825
Modified Files:
Application.py
Log Message:
Add Examples folder in a transation.
=== Zope/lib/python/OFS/Application.py 1.162 => 1.163 ===
if not hasattr(app, 'Examples'):
examples=app._p_jar.importFile(
- os.path.join(Globals.data_dir, 'Examples.zexp'),
- clue='Added Examples folder')
+ os.path.join(Globals.data_dir, 'Examples.zexp'))
app._setObject('Examples', examples)
+ get_transaction().note('Added Examples folder')
+ get_transaction().commit()
del examples
# b/c: Ensure that Owner role exists.