
    Bh                     v   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mZ d dlmZ  G d de      Z ej                   e        G d	 d
e      Z ej                   e        G d de      Z ej                   e        G d de      Z ej                   e        G d de      Z ej                   e       y)    )NoReverseMatchreverse)gettext_lazy)CMSAttachMenu)Category)MenuNavigationNode)	menu_poolc                       e Zd Zd Zy)SampleAppMenuc                    g }t         j                  j                         D ]N  }t        |j                  |j                         |j                  |j                  d      }|j                  |       P 	 t        t        d      t        d      d      }t        t        d      t        d      d      }t        t        d      t        d	      d
      }t        t        d      t        d      dd
      }|j                  |       |j                  |       |j                  |       |j                  |       |S # t        $ r Y |S w xY w)N	sampleappzsample root pagezsample-root   zsample settings pagezsample-settings   zsample account pagezsample-account   zsample my profile pagezsample-profile   )r   objectsallr	   nameget_absolute_urlpk	parent_idappend_r   r   )selfrequestnodescatnn2n3n4s           Z/home/dcms/DCMS/lib/python3.12/site-packages/cms/test_utils/project/sampleapp/cms_menus.py	get_nodeszSampleAppMenu.get_nodes   s   ##'') 	Csxx)=)=)?XcdALLO	
	q!34gm6LaPA"8 97CT;UWXYB"7 8'BR:SUVWB": ;WEU=VXY[\]BLLOLLLLLL   		s   3CD6 6	EEN)__name__
__module____qualname__r$        r#   r   r   
   s    r)   r   c                   "    e Zd Z ed      Zd Zy)
StaticMenuzStatic Menuc                     g }t        ddd      }t        ddd      }t        ddd	      }t        d
ddd	      }|j                  |       |j                  |       |j                  |       |j                  |       |S )Nzstatic root pagez/fresh/r   zstatic settings pagez/bye/r   zstatic account pagez/hello/r   zstatic my profile pagez/hello/world/r   )r	   r   )r   r   r   r   r    r!   r"   s          r#   r$   zStaticMenu.get_nodes%   sy    -y!<2GQ?19a@4oq!LQRRRr)   Nr%   r&   r'   r   r   r$   r(   r)   r#   r+   r+   "   s    ]D
r)   r+   c                       e Zd Z ed      Zy)StaticMenu2zStatic Menu2Nr%   r&   r'   r   r   r(   r)   r#   r/   r/   5       ^Dr)   r/   c                       e Zd Z ed      Zy)StaticMenu3zStatic Menu3Nr0   r(   r)   r#   r3   r3   <   r1   r)   r3   c                   "    e Zd Z ed      Zd Zy)StaticMenu4zStatic Menu4c                     t               }|j                  t        ddd             |j                  t        dt        d      d             |S )Nzstatic freshz/static/fresh/zsample2-root)listr   r	   r   )r   r   r   s      r#   r$   zStaticMenu4.get_nodesF   s>    ^N4DnUV^NGN4K^\]r)   Nr-   r(   r)   r#   r5   r5   C   s    ^Dr)   r5   N)django.urlsr   r   django.utils.translationr   r   cms.menu_basesr   'cms.test_utils.project.sampleapp.modelsr   
menus.baser   r	   menus.menu_poolr
   r   register_menur+   r/   r3   r5   r(   r)   r#   <module>r?      s    / 6 ( < + %D * 	   &   	  
 #*  	   $*  	   $-  	   $r)   