Exemplo n.º 1
0
 def _final_cleanup(self):
     """Final cleanup called in the run function at the very end of processing
     """
     # Clean up and remove the temporary gisdbase
     # Unlock mapsets
     PersistentProcessing._final_cleanup(self)
     # Unlock the mapsets
     for lock_id in self.lock_ids:
         self.lock_interface.unlock(lock_id)
Exemplo n.º 2
0
    def __init__(self, rdc):
        """Constructor

        Args:
            rdc (ResourceDataContainer): The data container that contains all
                                         required variables for processing

        """

        PersistentProcessing.__init__(self, rdc)
        self.lock_ids = {}  # This dict holds the lock ids of all locked mapsets
Exemplo n.º 3
0
 def __init__(self, *args):
     PersistentProcessing.__init__(self, *args)
Exemplo n.º 4
0
 def __init__(self, *args):
     PersistentProcessing.__init__(self, *args)
     self.response_model_class = MapsetInfoResponseModel
Exemplo n.º 5
0
 def __init__(self, *args):
     PersistentProcessing.__init__(self, *args)
     self.response_model_class = StringListProcessingResultResponseModel
Exemplo n.º 6
0
    def __init__(self, *args):

        PersistentProcessing.__init__(self, *args)
        self.user_download_cache_path = os.path.join(
            self.config.DOWNLOAD_CACHE, self.user_id)