
    F4jL                        U d 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  ed       G d	 d
             Zdedee   dededef
dZ edg ddd       edg ddd       edg ddd       edg ddd        ed!g d"d#d$       ed%g d"d&d'       ed(g d"d)d*       ed+g d"d,d-       ed.g d"d/d0       ed1g d"d2d3      g
Zee   ed4<   eD  ci c]  } | j&                  |  c} Zd7d6Zy5c c} w )8uE   Registro de evaluaciones pedagógicas docente de aula (docs 31–40).    )	dataclass)SequenceType)models)schemas)#build_pedagogical_evaluation_routerT)frozenc                   d    e Zd ZU eed<   eed<   eed<   eed<   ee   ed<   eed<   eed<   eed<   y	)
PedagogicalGradeConfigkeyprefixtagmodelfield_namesdefault_document_type_idstore_schemaupdate_schemaN)__name__
__module____qualname__str__annotations__r   r   int     ]/var/www/pie360backend.cl/public_html/app/backend/services/pedagogical_evaluation_registry.pyr   r      s2    	HK	HK#!!r   r   r   r   doc_typer   returnc                 *   dj                  d | j                  d      D              dz   }d|j                  dd       d|j                  dd       }}t        | d|  |t	        t
        |      ||t	        t        |      t	        t        |            S )	N c              3   <   K   | ]  }|j                           y w)N)
capitalize).0ws     r   	<genexpr>z_cfg.<locals>.<genexpr>   s     @A@s   _ModelStoreUpdate/)r   r   r   r   r   r   r   r   )joinsplitreplacer   getattrr   r   )r   r   r   r   
model_name
store_nameupdate_names          r   _cfgr2      s     @3@@7JJ %j&8&8"&E%FG6R\RdRdelnpRqQrIsJ!3%yfj)!)Wj1g{3	 	r   ,pedagogical_evaluation_classroom_first_grade)8
student_iddocument_type_idstudent_full_namestudent_identification_numberstudent_born_datestudent_ageestablishment_idcoursereport_daterepetitionsprofessional_idreport_typeschool_situation_strengthsobservations
attitude_1
attitude_2
attitude_3
attitude_4
attitude_5
attitude_6
attitude_7
attitude_8
attitude_9attitude_10attitude_11attitude_12observations_attitude
language_1
language_2
language_3
language_4
language_5
language_6
language_7
language_8
language_9language_10language_11language_12language_13observations_languagereading_typecomprehension_levelwriting_levelmathematics_1mathematics_2mathematics_3mathematics_4mathematics_5mathematics_6mathematics_7mathematics_8mathematics_9mathematics_10mathematics_11observations_mathematics   z:Pedagogical Evaluation Classroom First Grade (Document 31)-pedagogical_evaluation_classroom_second_grade);r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   language_14language_15r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   mathematics_12rk       z;Pedagogical Evaluation Classroom Second Grade (Document 32),pedagogical_evaluation_classroom_third_grade)<r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   rn   ro   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rp   mathematics_13rk   !   z:Pedagogical Evaluation Classroom Third Grade (Document 33)-pedagogical_evaluation_classroom_fourth_grade)Br4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   rn   ro   language_16language_17r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rp   rs   mathematics_14mathematics_15mathematics_16mathematics_17rk   "   z;Pedagogical Evaluation Classroom Fourth Grade (Document 34),pedagogical_evaluation_classroom_fifth_grade)Cr4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   attitude_13rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   rn   ro   rv   rw   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rp   rs   rx   ry   rz   r{   rk   #   z:Pedagogical Evaluation Classroom Fifth Grade (Document 35),pedagogical_evaluation_classroom_sixth_grade$   z:Pedagogical Evaluation Classroom Sixth Grade (Document 36).pedagogical_evaluation_classroom_seventh_grade%   z<Pedagogical Evaluation Classroom Seventh Grade (Document 37)-pedagogical_evaluation_classroom_eighth_grade&   z;Pedagogical Evaluation Classroom Eighth Grade (Document 38)6pedagogical_evaluation_classroom_first_grade_secondary'   zDPedagogical Evaluation Classroom First Grade Secondary (Document 39)7pedagogical_evaluation_classroom_second_grade_secondary(   zEPedagogical Evaluation Classroom Second Grade Secondary (Document 40)PEDAGOGICAL_GRADE_CONFIGSNc           
          t         D ]k  }t        |j                  |j                  |j                  |j
                  |j                  |j                  |j                        }| j                  |       m y)uB   Monta los 10 routers de evaluación pedagógica desde el registro.)r   r   r   r   r   r   r   N)
r   r   r   r   r   r   r   r   r   include_router)
app_routercfgrouters      r   'register_pedagogical_evaluation_routersr     sb    ( 
*4::))%(%A%A))++
 	!!&)
*r   )r   N)__doc__dataclassesr   typingr   r   app.backend.dbr   app.backendr   3app.backend.services.pedagogical_evaluation_factoryr   r   r   r   r2   r   listr   r   PEDAGOGICAL_GRADE_CONFIG_BY_KEYr   )cs   0r   <module>r      s   K ! ! !  c $  	#  
	
 * 	69	
t 	D{>~ 	7<	
z 	EAAD 	6=	
| 	DCBF 	7C	
H 	EOHR 	6D	
J 	DQIT 	6D	
J 	DQIT 	8D	
J 	FQIT 	7D	
J 	EQIT 	@D	
J 	NQIT 	AD	
J 	OQIAJ; 4 67 JX 6O"O155!8"O * #Ps   C-