예제 #1
0
def _serialize(ctx, tag):
    return tags.serialize_tag(
        tag, options=util.get_serialization_options(ctx))
예제 #2
0
def _serialize(ctx, user, **kwargs):
    return users.serialize_user(
        user,
        ctx.user,
        options=util.get_serialization_options(ctx),
        **kwargs)
예제 #3
0
def _serialize(ctx, category):
    return tag_categories.serialize_category(
        category, options=util.get_serialization_options(ctx))
예제 #4
0
def _serialize_post(ctx, post):
    return posts.serialize_post(
        post,
        ctx.user,
        options=util.get_serialization_options(ctx))
예제 #5
0
def _serialize(ctx, comment, **kwargs):
    return comments.serialize_comment(
        comment,
        ctx.user,
        options=util.get_serialization_options(ctx), **kwargs)