Files
virt-manager/virtManagerTui/createmeter.py

32 lines
1.2 KiB
Python
Raw Normal View History

2011-05-03 14:57:35 -04:00
# createmeter.py - Copyright (C) 2009 Red Hat, Inc.
# Written by Darryl L. Pierce <dpierce@redhat.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; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
import urlgrabber.progress as progress
import logging
2011-05-03 14:57:35 -04:00
class CreateMeter(progress.BaseMeter):
def _do_start(self, now=None):
2011-05-03 14:57:35 -04:00
logging.info("Starting...")
def _do_end(self, amount_read, now=None):
logging.info("Ending: read=%d", amount_read)
2011-05-03 14:57:35 -04:00
def _do_update(self, amount_read, now=None):
logging.info("Update: read=%d", amount_read)