# Path: chain/core/resources.py
# class MetadataResource(Resource):
# class SensorDataResource(Resource):
# class ScalarSensorDataResource(SensorDataResource):
# class AggregateScalarSensorDataResource(SensorDataResource):
# class ScalarSensorResource(Resource):
# class PresenceDataResource(SensorDataResource):
# class PresenceSensorResource(Resource):
# class PersonResource(Resource):
# class MixedSensorResource(Resource):
# class DeviceResource(Resource):
# class SiteResource(Resource):
# class ApiRootResource(Resource):
#     def get_queryset(self):
#     def get_total_count(self):
#     def serialize_list(self, embed, cache):
#     def serialize_single(self, embed=True, cache=None, rels=True, *args, **kwargs):
#     def edit_view(cls, request, id):
#     def __init__(self, *args, **kwargs):
#     def format_time(self, timestamp):
#     def add_page_links(self, data, href, page_start, page_end):
#     def default_timespan(self):
#     def __init__(self, *args, **kwargs):
#     def serialize_single(self, embed=True, cache=None, rels=True):
#     def sanitize_field_value(cls, field_name, value):
#     def save(self):
#     def serialize_list(self, embed, cache):
#     def get_cache_key(self):
#     def serialize_stream(self):
#     def get_single_href(self):
#     def get_tags(self):
#     def get_field_schema_type(cls, field_name):
#     def model_has_field(cls, field_name):
#     def __init__(self, *args, **kwargs):
#     def get_list_href(self, embed=False):
#     def serialize_list(self, embed, cache):
#     def urls(cls):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def get_tags(self):
#     def __init__(self, *args, **kwargs):
#     def serialize_single(self, embed, cache):
#     def get_additional_links(self):
#     def serialize_list(self, embed, cache):
#     def get_person_url(self, obj):
#     def get_sensor_url(self, obj):
#     def serialize_stream(self):
#     def get_tags(self):
#     def get_filled_schema(self):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def get_additional_links(self):
#     def get_additional_embedded(self):
#     def get_person_url(self, obj):
#     def get_presense_data_url(self, obj):
#     def get_sensor_url(self, obj):
#     def get_tags(self):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def get_presence_data(self):
#     def get_additional_links(self):
#     def get_additional_embedded(self):
#     def get_presense_data_url(self, obj):
#     def get_tags(self):
# def json_merge(obj1, obj2):
#     def get_schema(cls, filters=None):
#     def create_list(cls, data, req):
#     def create_single(cls, data, req):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def serialize_list(self, embed, cache, *args, **kwargs):
#     def get_links(self):
#     def map_model_to_resource(self):
#     def query_models(self):
#     def get_tags(self):
#     def get_tags(self):
#     def serialize_single(self, embed, cache):
#     def get_filled_schema(self):
#     def deserialize(self):
#     def update(self, data):
#     def get_tags(self):
#     def get_schema(cls, filters=None):
#     def site_summary_view(cls, request, id):
#     def urls(cls):
#     def __init__(self, request):
#     def serialize(self):
#     def single_view(cls, request):


from django.conf.urls import patterns, include, url
from django.contrib import admin
from chain.core import resources
from django.conf import settings
    import debug_toolbar


admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^', include(resources.urls)),
    # Examples:
    # url(r'^$', 'chain.views.home', name='home'),
    # url(r'^chain/', include('chain.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^__debug__/', include(debug_toolbar.urls)),
    )

handler404 = 'chain.core.api.handle404'

# Path: chain/core/resources.py
# class MetadataResource(Resource):
# class SensorDataResource(Resource):
# class ScalarSensorDataResource(SensorDataResource):
# class AggregateScalarSensorDataResource(SensorDataResource):
# class ScalarSensorResource(Resource):
# class PresenceDataResource(SensorDataResource):
# class PresenceSensorResource(Resource):
# class PersonResource(Resource):
# class MixedSensorResource(Resource):
# class DeviceResource(Resource):
# class SiteResource(Resource):
# class ApiRootResource(Resource):
#     def get_queryset(self):
#     def get_total_count(self):
#     def serialize_list(self, embed, cache):
#     def serialize_single(self, embed=True, cache=None, rels=True, *args, **kwargs):
#     def edit_view(cls, request, id):
#     def __init__(self, *args, **kwargs):
#     def format_time(self, timestamp):
#     def add_page_links(self, data, href, page_start, page_end):
#     def default_timespan(self):
#     def __init__(self, *args, **kwargs):
#     def serialize_single(self, embed=True, cache=None, rels=True):
#     def sanitize_field_value(cls, field_name, value):
#     def save(self):
#     def serialize_list(self, embed, cache):
#     def get_cache_key(self):
#     def serialize_stream(self):
#     def get_single_href(self):
#     def get_tags(self):
#     def get_field_schema_type(cls, field_name):
#     def model_has_field(cls, field_name):
#     def __init__(self, *args, **kwargs):
#     def get_list_href(self, embed=False):
#     def serialize_list(self, embed, cache):
#     def urls(cls):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def get_tags(self):
#     def __init__(self, *args, **kwargs):
#     def serialize_single(self, embed, cache):
#     def get_additional_links(self):
#     def serialize_list(self, embed, cache):
#     def get_person_url(self, obj):
#     def get_sensor_url(self, obj):
#     def serialize_stream(self):
#     def get_tags(self):
#     def get_filled_schema(self):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def get_additional_links(self):
#     def get_additional_embedded(self):
#     def get_person_url(self, obj):
#     def get_presense_data_url(self, obj):
#     def get_sensor_url(self, obj):
#     def get_tags(self):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def get_presence_data(self):
#     def get_additional_links(self):
#     def get_additional_embedded(self):
#     def get_presense_data_url(self, obj):
#     def get_tags(self):
# def json_merge(obj1, obj2):
#     def get_schema(cls, filters=None):
#     def create_list(cls, data, req):
#     def create_single(cls, data, req):
#     def serialize_single(self, embed, cache, *args, **kwargs):
#     def serialize_list(self, embed, cache, *args, **kwargs):
#     def get_links(self):
#     def map_model_to_resource(self):
#     def query_models(self):
#     def get_tags(self):
#     def get_tags(self):
#     def serialize_single(self, embed, cache):
#     def get_filled_schema(self):
#     def deserialize(self):
#     def update(self, data):
#     def get_tags(self):
#     def get_schema(cls, filters=None):
#     def site_summary_view(cls, request, id):
#     def urls(cls):
#     def __init__(self, request):
#     def serialize(self):
#     def single_view(cls, request):


# Path: chain/urls.py
from django.conf.urls import patterns, include, url
from django.contrib import admin
from chain.core import resources
from django.conf import settings
    import debug_toolbar



admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^', include(resources.urls)),
    # Examples:
    # url(r'^$', 'chain.views.home', name='home'),
    # url(r'^chain/', include('chain.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^__debug__/', include(debug_toolbar.urls)),
    )

handler404 = 'chain.core.api.handle404'

handler500 = 'chain.core.api.handle500'