CS文件服务

nd.rest.nd_cs.html.get_download_url(dentry_id)

获取指定文件下载地址

dentry_id -> url

Parameters:dentry_id
Returns:
1
2
3
>>> from nd.rest.nd_cs.html import get_download_url
>>> url = get_download_url(dentry_id)
>>> print url
nd.rest.nd_cs.html.get_static_url(filename)

静态方式链接

Parameters:dentry_id
Returns:
1
2
3
4
>>> from nd.rest.nd_cs.html import get_static_url
>>> filename = '/report.html'
>>> url = get_static_url(filename)
>>> print url