[Checkins] SVN: z3c.rml/trunk/ Bug: Handle Windows drive letters
correctly.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Jun 19 14:12:42 EDT 2007
Log message for revision 76801:
Bug: Handle Windows drive letters correctly.
Thanks to Yuan Hong for the report and fix.
Changed:
U z3c.rml/trunk/CHANGES.txt
U z3c.rml/trunk/setup.py
U z3c.rml/trunk/src/z3c/rml/attr.py
-=-
Modified: z3c.rml/trunk/CHANGES.txt
===================================================================
--- z3c.rml/trunk/CHANGES.txt 2007-06-19 17:30:20 UTC (rev 76800)
+++ z3c.rml/trunk/CHANGES.txt 2007-06-19 18:12:41 UTC (rev 76801)
@@ -2,17 +2,23 @@
CHANGES
=======
+0.7 (06/19/2007)
+----------------
+
+- Bug: Handle Windows drive letters correctly.
+
+
0.6 (06/19/2007)
----------------
-- Fixed setup.py to include all dependencies.
+- Bug: Fixed setup.py to include all dependencies.
-- Added test to show that a blocktable style can be applied multiple times. A
- user reported that this is not working, but I could not replicate the
- problem.
+- Bug: Added test to show that a blocktable style can be applied multiple
+ times. A user reported that this is not working, but I could not replicate
+ the problem.
-- Updated the expected renderings to ReportLab 2.1. There were some good
- layout fixes that broke the image comparison.
+- Update: Updated the expected renderings to ReportLab 2.1. There were some
+ good layout fixes that broke the image comparison.
0.5 (04/01/2007)
Modified: z3c.rml/trunk/setup.py
===================================================================
--- z3c.rml/trunk/setup.py 2007-06-19 17:30:20 UTC (rev 76800)
+++ z3c.rml/trunk/setup.py 2007-06-19 18:12:41 UTC (rev 76801)
@@ -3,7 +3,7 @@
setup (
name='z3c.rml',
- version='0.6',
+ version='0.7',
author = "Stephan Richter and the Zope Community",
author_email = "zope3-dev at zope.org",
description = "An alternative implementation of RML",
Modified: z3c.rml/trunk/src/z3c/rml/attr.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/attr.py 2007-06-19 17:30:20 UTC (rev 76800)
+++ z3c.rml/trunk/src/z3c/rml/attr.py 2007-06-19 18:12:41 UTC (rev 76801)
@@ -282,6 +282,11 @@
modulepath, path = result.groups()
module = __import__(modulepath, {}, {}, (modulepath))
value = os.path.join(os.path.dirname(module.__file__), path)
+ # If there is a drive name in the path, then we want a local file to
+ # be opened. This is only interesting for Windows of course.
+ if os.path.splitdrive(value)[0]:
+ value = 'file:///' + value
+ # If the file is not to be opened, simply return the path.
if self.doNotOpen:
return value
# Open/Download the file
More information about the Checkins
mailing list