MARKMIN('@{a} @{c/f/args}',url=True,environment=dict(a='xxx'))

This commit is contained in:
Massimo Di Pierro
2012-04-05 22:07:17 -05:00
parent ef1ab39797
commit e76a918944
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-05 21:44:41) dev
Version 1.99.7 (2012-04-05 22:06:40) dev
+1 -2
View File
@@ -366,8 +366,7 @@ def render(text,extra={},allowed={},sep='p',URL=None,environment=None):
# turns into a digitally signed URL
def u1(match,URL=URL):
a,b,c = match.group('a'), match.group('b'), match.group('c')
return URL(a,b,args=c.split('/'),
scheme=True,host=True,user_signature=True)
return URL(a,b,args=c.split('/'),scheme=True,host=True)
text = re.compile(
'@\{(?P<a>\w+)/(?P<b>\w+)/(?P<c>.+?)\}'
).sub(u1,text)