@@ -0,0 +1,1095 @@
+# -*- coding: utf-8 -*-%0A# vim: tabstop=4 shiftwidth=4 softtabstop=4%0A%0A# Copyright (c) 2010-2012, GEM Foundation.%0A#%0A# OpenQuake is free software: you can redistribute it and/or modify it%0A# under the terms of the GNU Affero General Public License as published%0A# by the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A#%0A# OpenQuake is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU Affero General Public License%0A# along with OpenQuake.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0A%0A%22%22%22%0AUtility functions related to reporting the progress of a calculation.%0A%22%22%22%0A%0Aimport logging%0A%0A%0A# Place the new level between info and warning%0Alogging.STATUS = 25%0Alogging.addLevelName(logging.STATUS, %22STATUS%22)%0A%0A%0ALOG = logging.getLogger(__name__)%0A%0A%0Adef report_status(msg, *args, **kwargs):%0A    LOG._log(logging.STATUS, msg, *args, **kwargs)%0A

add progress reporting module