Ë
    ”2Úi•  ã                   ó*   —  G d „ de «      Zd„ Zg fd„Zy)c                   ó*   — e Zd ZdZi Zd„ Z ee«      Zy)ÚRegistryz.
    Registry for application dashboards.
    c                 ó–   — ddl m} t        ||«      st        d|z  «      ‚|| j                  v rt        d|«      ‚|| j                  |<   y )Né    )Ú	Dashboardz"%s is not an instance of Dashboardz@A dashboard has already been registered for the application "%s")Úgrappelli.dashboard.dashboardsr   Ú
issubclassÚ
ValueErrorÚregistry)ÚclsÚklassÚapp_namer   s       úS/var/www/html/acx/venv/lib/python3.12/site-packages/grappelli/dashboard/registry.pyÚregisterzRegistry.register
   sO   € Ý<Ü˜% Ô+ÜÐAÀEÑIÓJÐJØ�s—|‘|Ñ#Üð 4Ø5=ó?ð ?à!&ˆ�‰�XÒó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Úclassmethod© r   r   r   r      s   „ ñð €Hò'ñ ˜8Ó$�Hr   r   c                 ó6   — t        j                  | g|¢­i |¤Ž y)z?
    Register a custom dashboard into the global registry.
    N)r   r   )r   ÚargsÚkwargss      r   r   r      s   € ô ×Ñ�cÐ+˜DÒ+ FÓ+r   c                 ó2  — ddl }ddlm} ddlm} | j                  d«       | j                  d«       |j                  D ]8  }|| v rŒ	  ||«      j                  }	 |j                  d|«        |d|z  «       Œ: y# t        $ r Y ŒGw xY w# t        $ r Y ŒVw xY w)	zÆ
    Automagically discover custom dashboards and menus for installed apps.
    Optionally you can pass a ``blacklist`` of apps that you don't want to
    provide their own app index dashboard.
    r   N)Úimport_module)ÚsettingsÚ	grappellizgrappelli.dashboardÚ	dashboardz%s.dashboard)ÚimpÚ	importlibr   Údjango.confr   ÚappendÚINSTALLED_APPSÚ__path__ÚAttributeErrorÚfind_moduleÚImportError)Ú	blacklistr   r   r   ÚappÚapp_paths         r   Úautodiscoverr+      s¨   € ó Ý'Ý$à×Ñ�[Ô!Ø×ÑÐ*Ô+à×&Ñ&ò ,ˆà�)ÑØð	Ù$ SÓ)×2Ñ2ˆHð
	Ø�O‰O˜K¨Ô2ñ
 	�n sÑ*Õ+ñ%,øô ò 	Ùð	ûô ò 	Ùð	ús$   ÁA;ÁB
Á;	BÂBÂ
	BÂBN)Úobjectr   r   r+   r   r   r   ú<module>r-      s    ðô%ˆvô %ò",ð ô ,r   