[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.175
Chris McDonough
chrism@zope.com
Mon, 26 Nov 2001 16:00:10 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv20286
Modified Files:
Application.py
Log Message:
Moved import of PageTemplateFile to within a function, allowing tests which attempt to import OFS.Application.Application to succeed without products being set up.
=== Zope/lib/python/OFS/Application.py 1.174 => 1.175 ===
from zLOG import LOG, ERROR, WARNING, INFO
from HelpSys.HelpSys import HelpSys
-from Products.PageTemplates.PageTemplateFile import PageTemplateFile
class Application(Globals.ApplicationDefaultPermissions,
ZDOM.Root, Folder.Folder,
@@ -770,6 +769,7 @@
def install_standards(app):
# Install the replaceable standard objects
+ from Products.PageTemplates.PageTemplateFile import PageTemplateFile
std_dir = os.path.join(Globals.package_home(globals()), 'standard')
wrote = 0
for fn in os.listdir(std_dir):