Пример #1
0
def get_snippet_resource(activity, detail):
    return h.resource_link(detail['data']['resource'],
                           activity['data']['package']['id'])
Пример #2
0
def get_snippet_resource(activity, detail):
    return h.resource_link(detail['data']['resource'],
                           activity['data']['package']['id'])
Пример #3
0
def get_snippet_resource(activity, detail):
    link = h.resource_link(detail['data']['resource'],
                           activity['data']['package']['id'])
    return literal('''<span data-module-type="resource" >%s</span>'''
        % (link)
        )
Пример #4
0
def get_snippet_resource(activity, detail):
    return h.resource_link(detail["data"]["resource"], activity["data"]["package"]["id"])
Пример #5
0
def get_snippet_resource(activity, detail):
    link = h.resource_link(detail['data']['resource'],
                           activity['data']['package']['id'])
    return literal('''<span data-module-type="resource" >%s</span>''' % (link))