# Path: suma/core/models/meta/types.py
# class EnumSymbol(object):
#     """Define a fixed symbol tied to a parent class."""
# 
#     def __init__(self, cls_, name, value, description):
#         self.cls_ = cls_
#         self.name = name
#         self.value = value
#         self.description = description
# 
#     def __reduce__(self):
#         """Allow unpickling to return the symbol
#         linked to the DeclEnum class."""
#         return getattr, (self.cls_, self.name)
# 
#     def __iter__(self):
#         return iter([self.value, self.description])
# 
#     def __repr__(self):
#         return "<%s>" % self.name


from pyramid.renderers import JSON
from suma.core.models.meta import EnumSymbol
import datetime


def enum_adapter(obj, request):
    return obj.value


def datetime_adapter(obj, request):

# Path: suma/core/models/meta/types.py
# class EnumSymbol(object):
#     """Define a fixed symbol tied to a parent class."""
# 
#     def __init__(self, cls_, name, value, description):
#         self.cls_ = cls_
#         self.name = name
#         self.value = value
#         self.description = description
# 
#     def __reduce__(self):
#         """Allow unpickling to return the symbol
#         linked to the DeclEnum class."""
#         return getattr, (self.cls_, self.name)
# 
#     def __iter__(self):
#         return iter([self.value, self.description])
# 
#     def __repr__(self):
#         return "<%s>" % self.name


# Path: suma/web/settings/adapter.py
from pyramid.renderers import JSON
from suma.core.models.meta import EnumSymbol
import datetime



def enum_adapter(obj, request):
    return obj.value


def datetime_adapter(obj, request):

    return obj.isoformat()