[Checkins] SVN: five.customerize/trunk/ Fixed: mangle works when a template has in its path a folder which name starts with a dot.

Thomas Desvenain thomas.desvenain at gmail.com
Fri Sep 9 10:29:11 EST 2011


Log message for revision 122758:
  Fixed: mangle works when a template has in its path  a folder which name starts with a dot.

Changed:
  U   five.customerize/trunk/CHANGES.txt
  U   five.customerize/trunk/src/five/customerize/browser.py

-=-
Modified: five.customerize/trunk/CHANGES.txt
===================================================================
--- five.customerize/trunk/CHANGES.txt	2011-09-09 07:17:34 UTC (rev 122757)
+++ five.customerize/trunk/CHANGES.txt	2011-09-09 15:29:10 UTC (rev 122758)
@@ -4,6 +4,9 @@
 1.0.2 - unreleased
 ------------------
 
+- Fixed: mangle works when a template has in its path
+  a folder which name starts with a dot.
+  [thomasdesvenain]
 
 1.0.1 - 2011-04-03
 ------------------

Modified: five.customerize/trunk/src/five/customerize/browser.py
===================================================================
--- five.customerize/trunk/src/five/customerize/browser.py	2011-09-09 07:17:34 UTC (rev 122757)
+++ five.customerize/trunk/src/five/customerize/browser.py	2011-09-09 15:29:10 UTC (rev 122758)
@@ -66,6 +66,13 @@
     pieces = dir.split(sep)
     if pieces[0] == '':
         pieces = pieces[1:]
+
+    # get pieces that comes after the last folder whose name starts by a dot
+    for index, piece in enumerate(reversed(pieces)):
+        if piece.startswith('.'):
+            pieces = pieces[-index:]
+            break
+
     while pieces:
         try:
             resolve('.'.join(pieces))



More information about the checkins mailing list