o
    ©Ciê  ã                   @   s`   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ G dd	„ d	e
ƒZd
S )zLCore properties part, corresponds to ``/docProps/core.xml`` part in package.é    )Údatetime)ÚCONTENT_TYPE)ÚCoreProperties)ÚPackURI)ÚXmlPart)ÚCT_CorePropertiesc                   @   s4   e Zd ZdZedd„ ƒZedd„ ƒZedd„ ƒZdS )	ÚCorePropertiesPartzxCorresponds to part named ``/docProps/core.xml``, containing the core document
    properties for this document package.c                 C   s0   |   |¡}|j}d|_d|_d|_t ¡ |_|S )ziReturn a new |CorePropertiesPart| object initialized with default values for
        its base properties.zWord Documentzpython-docxé   )Ú_newÚcore_propertiesÚtitleÚlast_modified_byÚrevisionr   ÚutcnowÚmodified)ÚclsÚpackageÚcore_properties_partr   © r   úp/var/www/html/fyndo/python/python_agents/rag_suite/venv/lib/python3.10/site-packages/docx/opc/parts/coreprops.pyÚdefault   s   

zCorePropertiesPart.defaultc                 C   s
   t | jƒS )z|A |CoreProperties| object providing read/write access to the core properties
        contained in this core properties part.)r   Úelement)Úselfr   r   r   r      s   
z"CorePropertiesPart.core_propertiesc                 C   s$   t dƒ}tj}t ¡ }t||||ƒS )Nz/docProps/core.xml)r   ÚCTÚOPC_CORE_PROPERTIESr   Únewr   )r   r   ÚpartnameÚcontent_typeÚcorePropertiesr   r   r   r
   "   s   zCorePropertiesPart._newN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úclassmethodr   Úpropertyr   r
   r   r   r   r   r      s    

r   N)r"   r   Údocx.opc.constantsr   r   Údocx.opc.corepropsr   Údocx.opc.packurir   Údocx.opc.partr   Údocx.oxml.corepropsr   r   r   r   r   r   Ú<module>   s    