[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/expressions.py Allow dots in the later part of path expressions. For example: "context/favicon.gif".
Hanno Schlichting
plone at hannosch.info
Fri Aug 15 18:59:32 EDT 2008
Log message for revision 89901:
Allow dots in the later part of path expressions. For example: "context/favicon.gif".
Changed:
U z3c.pt/trunk/src/z3c/pt/expressions.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/expressions.py 2008-08-15 22:26:55 UTC (rev 89900)
+++ z3c.pt/trunk/src/z3c/pt/expressions.py 2008-08-15 22:59:32 UTC (rev 89901)
@@ -578,7 +578,7 @@
class PathTranslation(ExpressionTranslation):
path_regex = re.compile(
r'^((nocall|not):\s*)*([A-Za-z_][A-Za-z0-9_]*)'+
- r'(/[A-Za-z_ at -][A-Za-z0-9_ at -]*)*$')
+ r'(/[A-Za-z_ at -][A-Za-z0-9_ at -\\.]*)*$')
@classmethod
def traverse(cls, base, request, call, *path_items):
More information about the Checkins
mailing list