o
    È·eY	  ã                   @   sP   d dl mZ d dlmZ d dlmZ d dlZd dlZd dlZG dd„ deƒZ	dS )é    )Ú	MHMessage)Úget_ts)ÚgethostnameNc                   @   s   e Zd Zddd„ZdS )ÚServiceMessageNc                 C   s  |r|   |¡ |jr^tj |j¡}|d | d< |d | d< t |d ¡d }|d u r,d}|| d< t |j¡}t |d ¡}t	|ƒ| d< t |d	 ¡}t	|ƒ| d
< t |d ¡}t	|ƒ| d< n|j
| d< |jj
| d< |j| d< tƒ | d< |rz|| d< n|jj
| d< |j
| d< |j| d< d S )Nr   ÚOriginalLocationé   ÚOriginalFileNamezapplication/octet-streamzContent-Typeé   ÚFileAccessedDateé   ÚFileModifiedDateé	   ÚFileCreateDateÚContentTypeÚHostÚBucketÚInputKeyÚSize)ÚupdateÚpathÚosÚsplitÚ	mimetypesÚ
guess_typeÚstatÚtimeÚgmtimer   ÚnameÚbucketÚcontent_typer   Úsize)ÚselfÚkeyÚparamsÚbucket_nameÚtÚ	mime_typeÚs© r(   úL/var/www/ideatree/venv/lib/python3.10/site-packages/boto/services/message.pyÚfor_key   s4   





zServiceMessage.for_key)NN)Ú__name__Ú
__module__Ú__qualname__r*   r(   r(   r(   r)   r      s    r   )
Úboto.sqs.messager   Ú
boto.utilsr   Úsocketr   r   r   r   r   r(   r(   r(   r)   Ú<module>   s
   