# Path: xbeewifiapp/apps/dashboard/views.py
# def placeholder(request):
# def socket_test(request):
# def monitor_receiver(request):
# def monitor_setup(request, device_id):
# def monitor_devicecore_setup(request):
# def api_root(request, format=None):
# def login_user(request):
# def logout_user(request):
#     def get_queryset(self):
#     def pre_save(self, obj):
#     def get_queryset(self):
#     def get(self, request, format=None):
#     def post(self, request, format=None):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id=None):
#     def get(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id=None):
#     def post(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def get(self, request, device_id=None, stream_id=None, format=None):
# class DashboardsViewSet(viewsets.ModelViewSet):
# class UserViewSet(viewsets.ReadOnlyModelViewSet):
# class DevicesList(APIView):
# class DevicesDetail(APIView):
# class DeviceIO(APIView):
# class DeviceConfig(APIView):
# class DeviceConfigGroup(APIView):
# class DeviceConfigStock(APIView):
# class DeviceSerial(APIView):
# class DevicesDatastreamList(APIView):
# class DevicesDatapointList(APIView):


from django.conf.urls import patterns, include, url
from django.contrib.auth.views import logout_then_login
from django.views.generic.base import TemplateView
from rest_framework import routers
from xbeewifiapp.apps.dashboard import views
from xbeewifiapp.libs.digi.forms import DeviceCloudAuthenticationForm
from socketio import sdjango
    url(r'^logout$', logout_then_login, name='logout'),
)

# Dashboard Non-API Views
urlpatterns += patterns(
    'xbeewifiapp.apps.dashboard.views',
    url(r'^$', TemplateView.as_view(template_name='index.html'),
        name="dashboard"),
    # DEBUG
    #url(r'^debug$', 'placeholder', name='dashboard-view'),
    #url(r'^sockettest$', 'socket_test'),
)

# Dashboard API Views not already registered with the router
dashboard_api_patterns = patterns(
    'xbeewifiapp.apps.dashboard.views',
    url(r'^$', 'api_root'),
    url(r'^login$', 'login_user', name='api_login'),
    url(r'^logout$', 'logout_user', name='api_logout'),
    url(r'^monitor$', 'monitor_receiver', name='monitor_receiver'),
    url(r'^monitor/setup/devicecore', 'monitor_devicecore_setup',
        name='monitor_setup_devicecore'),
    url(r'^monitor/setup/(?P<device_id>[0-9A-F\-]+)$', 'monitor_setup',
        name='monitor_setup'),
    url(r'^devices$', views.DevicesList.as_view(), name='devices-list'),
    url(r'^devices/(?P<device_id>[0-9A-F\-]+)$', views.DevicesDetail.as_view(),
        name='devices-detail'),
    url(r'^devices/(?P<device_id>[0-9A-F\-]+)/io$', views.DeviceIO.as_view(),
        name='device-io'),
    url(r'^devices/(?P<device_id>[0-9A-F\-]+)/config$',

# Path: xbeewifiapp/apps/dashboard/views.py
# def placeholder(request):
# def socket_test(request):
# def monitor_receiver(request):
# def monitor_setup(request, device_id):
# def monitor_devicecore_setup(request):
# def api_root(request, format=None):
# def login_user(request):
# def logout_user(request):
#     def get_queryset(self):
#     def pre_save(self, obj):
#     def get_queryset(self):
#     def get(self, request, format=None):
#     def post(self, request, format=None):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id=None):
#     def get(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id=None):
#     def post(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def get(self, request, device_id=None, stream_id=None, format=None):
# class DashboardsViewSet(viewsets.ModelViewSet):
# class UserViewSet(viewsets.ReadOnlyModelViewSet):
# class DevicesList(APIView):
# class DevicesDetail(APIView):
# class DeviceIO(APIView):
# class DeviceConfig(APIView):
# class DeviceConfigGroup(APIView):
# class DeviceConfigStock(APIView):
# class DeviceSerial(APIView):
# class DevicesDatastreamList(APIView):
# class DevicesDatapointList(APIView):


# Path: xbeewifiapp/urls.py
from django.conf.urls import patterns, include, url
from django.contrib.auth.views import logout_then_login
from django.views.generic.base import TemplateView
from rest_framework import routers
from xbeewifiapp.apps.dashboard import views
from xbeewifiapp.libs.digi.forms import DeviceCloudAuthenticationForm
from socketio import sdjango

    url(r'^logout$', logout_then_login, name='logout'),
)

# Dashboard Non-API Views
urlpatterns += patterns(
    'xbeewifiapp.apps.dashboard.views',
    url(r'^$', TemplateView.as_view(template_name='index.html'),
        name="dashboard"),
    # DEBUG
    #url(r'^debug$', 'placeholder', name='dashboard-view'),
    #url(r'^sockettest$', 'socket_test'),
)

# Dashboard API Views not already registered with the router
dashboard_api_patterns = patterns(
    'xbeewifiapp.apps.dashboard.views',
    url(r'^$', 'api_root'),
    url(r'^login$', 'login_user', name='api_login'),
    url(r'^logout$', 'logout_user', name='api_logout'),
    url(r'^monitor$', 'monitor_receiver', name='monitor_receiver'),
    url(r'^monitor/setup/devicecore', 'monitor_devicecore_setup',
        name='monitor_setup_devicecore'),
    url(r'^monitor/setup/(?P<device_id>[0-9A-F\-]+)$', 'monitor_setup',
        name='monitor_setup'),
    url(r'^devices$', views.DevicesList.as_view(), name='devices-list'),
    url(r'^devices/(?P<device_id>[0-9A-F\-]+)$', views.DevicesDetail.as_view(),
        name='devices-detail'),
    url(r'^devices/(?P<device_id>[0-9A-F\-]+)/io$', views.DeviceIO.as_view(),
        name='device-io'),
    url(r'^devices/(?P<device_id>[0-9A-F\-]+)/config$',

        views.DeviceConfig.as_view(), name='device-config'),