ó
>*Xc           @   s›   d  d l  Z  d  d l m Z m Z m Z d  d l m Z d  d l m Z m	 Z	 d  d l
 m Z d  d l m Z d  d l m Z d  d l m Z d	 „  Z d S(
   iÿÿÿÿN(   t   render_to_responset   rendert   redirect(   t   RequestContext(   t   HttpResponset   JsonResponse(   t   notification_return_list(   t   user_get_language(   t   annotations_get_icon_list(   t   Lldevicelistc         C   s  |  j  j ƒ  rt j j d d ƒ } i  } t ƒ  } t |  ƒ } x | D]w } |  j  j d t | j	 ƒ ƒ rF i | j
 d 6| j d 6| j d 6| j d 6| j	 d 6| j d	 6} | | | j	 <qF qF Wt d
 i |  j  d 6t j | ƒ d 6t |  ƒ d 6| d 6| d 6t |  ƒ ƒ St d ƒ Sd  S(   Nt
   loc_activei   s   DeviceList.t   latitudet	   longitudet   typet
   identifiert   idt   infos	   maps.htmlt   user_objectt   devices_jsont   langt   notification_listt   annotation_icon_lists   /leakless-monitor(   t   usert   is_authenticatedR	   t   objectst   filterR   R   t   has_permt   strR   t   loc_latt   loc_longt   loc_typet   rem_identifiert   rem_infoR    t   jsont   dumpsR   R   R   (   t   requestt   device_listt   devices_dictR   R   t   devicet   device_info_list(    (    se   D:\SMTech Code\LeakLess Software\LeakLess Monitor\LeakLess Monitor\Applications\Devices\Maps\views.pyt   maps_view_map   s*    	




(   R!   t   django.shortcutsR    R   R   t   django.templateR   t   django.httpR   R   t    Applications.Notifications.viewsR   t   Applications.Users.viewsR   t+   Applications.Measure.Plot.Annotations.viewsR   t   Applications.Devices.modelsR	   R(   (    (    (    se   D:\SMTech Code\LeakLess Software\LeakLess Monitor\LeakLess Monitor\Applications\Devices\Maps\views.pyt   <module>   s   