Commit 93a7551b authored by Hanno Schlichting's avatar Hanno Schlichting

Some more style and avoid abbreviations

parent f5344515
...@@ -1028,25 +1028,24 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -1028,25 +1028,24 @@ class ZCatalog(Folder, Persistent, Implicit):
'manage_resetCatalogReport') 'manage_resetCatalogReport')
def manage_resetCatalogReport(self, REQUEST=None, RESPONSE=None, URL1=None): def manage_resetCatalogReport(self, REQUEST=None, RESPONSE=None, URL1=None):
""" resets the catalog reports """ """ resets the catalog reports """
self._catalog.getCatalogReport().reset() self._catalog.getCatalogReport().reset()
if REQUEST and RESPONSE: if REQUEST and RESPONSE:
RESPONSE.redirect( RESPONSE.redirect(
URL1 + URL1 +
'/manage_catalogReport?manage_tabs_message=Report%20Cleared') '/manage_catalogReport?manage_tabs_message=Report%20cleared')
security.declareProtected(manage_zcatalog_entries, 'manage_editCatalogReport') security.declareProtected(manage_zcatalog_entries,
'manage_editCatalogReport')
def manage_editCatalogReport(self, RESPONSE, URL1, long_query_time=0.1, REQUEST=None): def manage_editCatalogReport(self, RESPONSE, URL1, long_query_time=0.1, REQUEST=None):
""" edit the long query time """ """ edit the long query time """
if type(long_query_time) is not type(1.0): if not isinstance(long_query_time, float):
long_query_time=float(long_query_time) long_query_time = float(long_query_time)
# transform to seconds
self.long_query_time = long_query_time self.long_query_time = long_query_time
RESPONSE.redirect( RESPONSE.redirect(
URL1 + '/manage_catalogReport?manage_tabs_message=Long Query Time%20Changed') URL1 + '/manage_catalogReport?manage_tabs_message=Long%20query%20time%20changed')
InitializeClass(ZCatalog) InitializeClass(ZCatalog)
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<tr> <tr>
<td align="right" valign="middle"> <td align="right" valign="middle">
<div class="list-item"> <div class="list-item">
Threshold Threshold (in seconds)
</div> </div>
</td> </td>
<td align="left" valign="middle"> <td align="left" valign="middle">
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<td align="left" valign="middle"> <td align="left" valign="middle">
<p class="form-help">Only queries whose execution <p class="form-help">Only queries whose execution
takes longer than the configured threshold are considered takes longer than the configured threshold are considered
being slow. (Default:&nbsp;0.1&nbsp;s).</p> being slow. (Default:&nbsp;0.1&nbsp;seconds).</p>
</tr> </tr>
</table> </table>
<input class="form-element" type="submit" value="Apply settings"> <input class="form-element" type="submit" value="Apply settings">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment