
    [h	                     p    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 dZd	Zd
Z G d d      Zy)u  
/***************************************************************************
    QGIS Server Plugin Filters: Add a new request to print a specific atlas
    feature
    ---------------------
    Date                 : October 2017
    Copyright            : (C) 2017 by Michaël Douchin - 3Liz
    Email                : mdouchin at 3liz dot com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
    )QgsServerInterface)AtlasPrintFilter)Logger)	Plausible)AtlasPrintService)versionzCopyright 2024, 3LizzGPL version 3zinfo@3liz.orgc                        e Zd ZdZdeddfdZy)AtlasPrintServerz>Plugin for QGIS server
    this plugin loads AtlasPrint filterserver_ifacereturnNc                    || _         t               | _        | j                  j                  dt	                d       	 t               | _        | j                  j                          	 |j                         }|j                  t                      	 |j                  t        | j                         d       y # t        $ r@}| j                  j                  |       | j                  j                  d       Y d }~d }~ww xY w# t        $ r$}| j                  j                  d|         d }~ww xY w# t        $ r$}| j                  j                  d|         d }~ww xY w)NzInit server version ""z!Error while calling the API statsz"Error loading filter AtlasPrint : 2   )r   r   loggerinfor   r   	plausiblerequest_stat_event	Exceptionlog_exceptioncriticalserviceRegistryregisterServicer   registerFilterr   )selfr   eregs       1/var/www/qgis-server/plugins/atlasprint/server.py__init__zAtlasPrintServer.__init__&   s.   (h01=>	F&[DNNN--/	..0C 1 34	''(89J9J(KRP  	FKK%%a(KK  !DEE	F  	KK  #EaS!IJ	  	KK  #EaS!IJ	sG   )B9 ))D %D5 9	D6C==D	D2D--D25	E">EE")__name__
__module____qualname____doc__r   r        r   r
   r
   "   s    +%7 D r$   r
   N)r"   qgis.serverr   atlasprint.filterr   atlasprint.loggerr   atlasprint.plausibler   atlasprint.servicer   atlasprint.toolsr   __copyright____license__	__email__r
   r#   r$   r   <module>r.      s7   ( + . $ * 0 $&	 r$   