How to use the turbojson.jsonify.jsonify_sqlobject function in TurboJson

To help you get started, we’ve selected a few TurboJson examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yt-project / yt / yt / deliverator / deliverator / json.py View on Github external
def jsonify_user(obj):
    result = jsonify_sqlobject( obj )
    del result['password']
    result["groups"] = [g.group_name for g in obj.groups]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result
github fedora-infra / bodhi / bodhi / json.py View on Github external
def jsonify_user(obj):
    result = jsonify_sqlobject(obj)
    del result['password']
    result["groups"] = [g.group_name for g in obj.groups]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result
github yt-project / yt / yt / deliverator / deliverator / json.py View on Github external
def jsonify_permission(obj):
    result = jsonify_sqlobject( obj )
    result["groups"] = [g.group_name for g in obj.groups]
    return result
github fedora-infra / bodhi / bodhi / json.py View on Github external
def jsonify_permission(obj):
    result = jsonify_sqlobject(obj)
    result["groups"] = [g.group_name for g in obj.groups]
    return result
github fedora-infra / python-fedora / fedora / tg / identity / soprovidercsrf.py View on Github external
def jsonify_user(obj):
    """Convert user to JSON."""
    result = jsonify_sqlobject(obj)
    del result['password']
    result["groups"] = [g.group_name for g in obj.groups]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result
github fedora-infra / bodhi / bodhi / json.py View on Github external
def jsonify_group(obj):
    result = jsonify_sqlobject(obj)
    result["users"] = [u.user_name for u in obj.users]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result
github yt-project / yt / yt / deliverator / deliverator / json.py View on Github external
def jsonify_group(obj):
    result = jsonify_sqlobject( obj )
    result["users"] = [u.user_name for u in obj.users]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result
github fedora-infra / python-fedora / fedora / tg / identity / soprovidercsrf.py View on Github external
def jsonify_group(obj):
    """Convert group to JSON."""
    result = jsonify_sqlobject(obj)
    result["users"] = [u.user_name for u in obj.users]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result
github fedora-infra / python-fedora / fedora / tg / identity / soprovidercsrf.py View on Github external
def jsonify_permission(obj):
    """Convert permissions to JSON."""
    result = jsonify_sqlobject(obj)
    result["groups"] = [g.group_name for g in obj.groups]
    return result
github wesnoth / wesnoth / website / stats.wesnoth.org / wesstats / json.py View on Github external
def jsonify_group(obj):
    result = jsonify_sqlobject( obj )
    result["users"] = [u.user_name for u in obj.users]
    result["permissions"] = [p.permission_name for p in obj.permissions]
    return result

TurboJson

Python template plugin that supports JSON

MIT
Latest version published 13 years ago

Package Health Score

42 / 100
Full package analysis

Similar packages