[Checkins] SVN: z3c.pt/trunk/ Changed source code debug mode files to be named <filename>.py instead of <filename>.source.

Hanno Schlichting plone at hannosch.info
Tue Aug 12 14:49:28 EDT 2008


Log message for revision 89753:
  Changed source code debug mode files to be named <filename>.py instead of <filename>.source.
  

Changed:
  U   z3c.pt/trunk/CHANGES.txt
  U   z3c.pt/trunk/src/z3c/pt/config.py
  U   z3c.pt/trunk/src/z3c/pt/template.py

-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt	2008-08-12 18:37:40 UTC (rev 89752)
+++ z3c.pt/trunk/CHANGES.txt	2008-08-12 18:49:27 UTC (rev 89753)
@@ -4,6 +4,9 @@
 Version 1.0dev
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+- Changed source code debug mode files to be named <filename>.py instead of
+  <filename>.source.
+
 - Generalized ElementTree-import to allow both Python 2.5's
   ``xml.etree`` module and the standalone ``ElementTree``
   package. [malthe]

Modified: z3c.pt/trunk/src/z3c/pt/config.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/config.py	2008-08-12 18:37:40 UTC (rev 89752)
+++ z3c.pt/trunk/src/z3c/pt/config.py	2008-08-12 18:49:27 UTC (rev 89753)
@@ -20,5 +20,3 @@
 I18N_NS = "http://xml.zope.org/namespaces/i18n"
 PY_NS = "http://genshi.edgewall.org"
 NS_MAP = dict(py=PY_NS, tal=TAL_NS, metal=METAL_NS)
-            
-        

Modified: z3c.pt/trunk/src/z3c/pt/template.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/template.py	2008-08-12 18:37:40 UTC (rev 89752)
+++ z3c.pt/trunk/src/z3c/pt/template.py	2008-08-12 18:49:27 UTC (rev 89753)
@@ -163,14 +163,14 @@
         self._source = source
 
         # write source to disk
-        if self.filename and DEBUG_MODE:
-            filename = "%s.source" % self.filename
+        if source and self.filename and DEBUG_MODE:
+            filename = "%s.py" % self.filename
             fs = open(filename, 'w')
             fs.write(source)
             fs.close()
 
     source = property(_get_source, _set_source)
-    
+
     def read(self):
         fd = open(self.filename, 'r')
         self.body = body = fd.read()



More information about the Checkins mailing list