[Zope-Checkins] CVS: Zope2 - DT_String.py:1.45

andreas@serenade.digicool.com andreas@serenade.digicool.com
Wed, 30 May 2001 11:58:01 -0400


Update of /cvs-repository/Zope2/lib/python/DocumentTemplate
In directory serenade:/tmp/cvs-serv21362/lib/python/DocumentTemplate

Modified Files:
	DT_String.py 
Log Message:
merged ajung-dropin-registry branch


--- Updated File DT_String.py in package Zope2 --
--- DT_String.py	2001/04/30 14:46:00	1.44
+++ DT_String.py	2001/05/30 15:57:30	1.45
@@ -85,7 +85,7 @@
 "$Id$"
 
 from string import split, strip
-import thread,re
+import thread,re,exceptions,os
 
 from DT_Util import ParseError, InstanceDict, TemplateDict, render_blocks, str
 from DT_Var import Var, Call, Comment
@@ -582,6 +582,9 @@
     read_raw__roles__=()
     def read_raw(self):
         if self.edited_source: return self.edited_source
+        if not os.path.exists(self.raw):
+            print 'file not found: %s' % self.raw
+ 
         if self.raw: return open(self.raw,'r').read()
         return ''