def all_user_tags_json(): result = {} if globals.user and globals.user.is_authenticated(): result = get_user_tags(globals.request) return simplejson.dumps(result)
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 ''