Ejemplo n.º 1
0
def all_user_tags_json():
    result = {}

    if globals.user and globals.user.is_authenticated():
        result = get_user_tags(globals.request)

    return simplejson.dumps(result)
Ejemplo n.º 2
0
def all_user_tags_json():
    result = {}

    if globals.user and globals.user.is_authenticated():
        result = get_user_tags(globals.request)

    return simplejson.dumps(result)
Ejemplo n.º 3
0
    def render(self, context):
        result = {}

        if globals.user and globals.user.is_authenticated():
            result = get_user_tags(globals.request)

        context['all_user_tags'] = result

        return ''
Ejemplo n.º 4
0
    def render(self, context):
        result = {}

        if globals.user and globals.user.is_authenticated():
            result = get_user_tags(globals.request)

        context['all_user_tags'] = result

        return ''