[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.p
Status message moved to the top so the size will be displayed
right after the packing
Dmitry Vasiliev
dima at hlabs.spb.ru
Fri Sep 9 10:25:13 EDT 2005
Log message for revision 38429:
Status message moved to the top so the size will be displayed right after the packing
Changed:
U Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.pt
U Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.py
-=-
Modified: Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.pt
===================================================================
--- Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.pt 2005-09-09 14:12:16 UTC (rev 38428)
+++ Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.pt 2005-09-09 14:25:12 UTC (rev 38429)
@@ -6,6 +6,11 @@
<body>
<div metal:fill-slot="body">
+ <div class="row" tal:define="status view/pack"
+ tal:condition="status">
+ <div class="field" tal:content="status" i18n:translate=""/>
+ </div>
+
<div class="row">
<div class="label"
i18n:translate="">Name of database</div>
@@ -19,11 +24,6 @@
i18n:translate="">1.1 MB</div>
</div>
- <div class="row" tal:define="status view/pack"
- tal:condition="status">
- <div class="field" tal:content="status" i18n:translate=""/>
- </div>
-
<form action="." method="post" tal:attributes="action request/URL">
<div class="row">
<div class="label" i18n:translate="">Keep up to</div>
Modified: Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.py
===================================================================
--- Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.py 2005-09-09 14:12:16 UTC (rev 38428)
+++ Zope3/trunk/src/zope/app/applicationcontrol/browser/zodbcontrol.py 2005-09-09 14:25:12 UTC (rev 38429)
@@ -21,6 +21,7 @@
from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.size import byteDisplay
+
class ZODBControlView(object):
def getName(self):
@@ -32,7 +33,7 @@
size = self.request.publication.db.getSize()
if not isinstance(size, (int, long, float)):
return str(size)
- return byteDisplay(size)
+ return byteDisplay(size)
def pack(self):
"""Do the packing!"""
@@ -44,5 +45,4 @@
status = _('ZODB successfully packed.')
except FileStorageError, err:
status = _(err)
-
return status
More information about the Zope3-Checkins
mailing list