예제 #1
0
파일: urn.py 프로젝트: antiface/ductus
def resolve(value):
    """Resolves a URN, returning its absolute URL on the server
    """

    return resolve_urn(value)
예제 #2
0
파일: views.py 프로젝트: antiface/ductus
 def repl(matchobj):
     urn = matchobj.group(0)
     return u'<a href="%s">%s</a>' % (resolve_urn(urn) + query_string, urn)