Fix / improve progress display somewhat
This commit is contained in:
parent
d0d8da9e47
commit
7e3d47aa5c
2 changed files with 14 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2014 Lance Edgar
|
||||
# Copyright © 2010-2016 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -20,12 +20,11 @@
|
|||
# along with Rattail. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
"""
|
||||
Progress Indicator
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
from beaker.session import Session
|
||||
|
||||
|
@ -56,6 +55,7 @@ class SessionProgress(object):
|
|||
self.clear()
|
||||
self.session['message'] = message
|
||||
self.session['maximum'] = maximum
|
||||
self.session['maximum_display'] = '{:,d}'.format(maximum)
|
||||
self.session['value'] = 0
|
||||
self.session.save()
|
||||
return self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue