MARKMIN('@{a} @{c/f/args}',url=True,environment=dict(a='xxx'))
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-04-05 21:44:41) dev
|
Version 1.99.7 (2012-04-05 22:06:40) dev
|
||||||
|
|||||||
@@ -366,8 +366,7 @@ def render(text,extra={},allowed={},sep='p',URL=None,environment=None):
|
|||||||
# turns into a digitally signed URL
|
# turns into a digitally signed URL
|
||||||
def u1(match,URL=URL):
|
def u1(match,URL=URL):
|
||||||
a,b,c = match.group('a'), match.group('b'), match.group('c')
|
a,b,c = match.group('a'), match.group('b'), match.group('c')
|
||||||
return URL(a,b,args=c.split('/'),
|
return URL(a,b,args=c.split('/'),scheme=True,host=True)
|
||||||
scheme=True,host=True,user_signature=True)
|
|
||||||
text = re.compile(
|
text = re.compile(
|
||||||
'@\{(?P<a>\w+)/(?P<b>\w+)/(?P<c>.+?)\}'
|
'@\{(?P<a>\w+)/(?P<b>\w+)/(?P<c>.+?)\}'
|
||||||
).sub(u1,text)
|
).sub(u1,text)
|
||||||
|
|||||||
Reference in New Issue
Block a user