# Path: riv/serializers/base_serializer.py
# SEPARATOR = '__'
# class LoadingError(Exception):
# class Serializer(python.Serializer):
# class Loader:
#     def get_loader(self):
#     def serialize(self, queryset, **options):
#     def fake_serialize(self, queryset, **options):
#     def start_serialization(self):
#     def start_object(self, obj):
#     def end_object(self, obj):
#     def end_serialization(self):
#     def handle_fk_field(self, obj, field):
#     def handle_m2m_field(self, obj, field):
#     def serialize_reverse_fields(self, obj):
#     def _get_serialize_options_for_subfield(self, name):
#     def _map_field(self, key, value):
# def Deserializer(object_list, **options):
#     def load(self, queryset, **options):
#     def pre_loading(self):
#     def post_loading(self):
#     def get_querydict(self, force_batch=False):
#     def get_objects(self):
#     def dictionize_list_for_formsets(self):
#     def remove_excluded_fields(self):
#     def reverse_map_fields(self, objects=None):
#     def rearrange_for_deserialization(self):


from StringIO import StringIO
from django.core.serializers.json import DjangoJSONEncoder, DateTimeAwareJSONEncoder
from django.core.serializers.base import DeserializationError
from riv.serializers import base_serializer as base
import json


class Serializer(base.Serializer):
    internal_use_only = False

    def get_loader(self):
        return Loader

    def serialize(self, queryset, **options):

# Path: riv/serializers/base_serializer.py
# SEPARATOR = '__'
# class LoadingError(Exception):
# class Serializer(python.Serializer):
# class Loader:
#     def get_loader(self):
#     def serialize(self, queryset, **options):
#     def fake_serialize(self, queryset, **options):
#     def start_serialization(self):
#     def start_object(self, obj):
#     def end_object(self, obj):
#     def end_serialization(self):
#     def handle_fk_field(self, obj, field):
#     def handle_m2m_field(self, obj, field):
#     def serialize_reverse_fields(self, obj):
#     def _get_serialize_options_for_subfield(self, name):
#     def _map_field(self, key, value):
# def Deserializer(object_list, **options):
#     def load(self, queryset, **options):
#     def pre_loading(self):
#     def post_loading(self):
#     def get_querydict(self, force_batch=False):
#     def get_objects(self):
#     def dictionize_list_for_formsets(self):
#     def remove_excluded_fields(self):
#     def reverse_map_fields(self, objects=None):
#     def rearrange_for_deserialization(self):


# Path: riv/serializers/json_serializer.py
from StringIO import StringIO
from django.core.serializers.json import DjangoJSONEncoder, DateTimeAwareJSONEncoder
from django.core.serializers.base import DeserializationError
from riv.serializers import base_serializer as base
import json



class Serializer(base.Serializer):
    internal_use_only = False

    def get_loader(self):
        return Loader

    def serialize(self, queryset, **options):

        self.finalize = options.pop('finalize', True)