Commit eada1854 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update the view plugin_event/grid to add the processing time.

parent 8d3973c7
......@@ -13,6 +13,7 @@
# - Export python variables to javascript
#--------------------------------------------------------------------------
import json
from datetime import datetime
#
# The title and the DIV block
......@@ -28,6 +29,19 @@
cfg_grid = json.dumps(grid, cls=dbui.JSONEncoder)
cfg_store = json.dumps(cfg_store, cls=dbui.JSONEncoder)
#
# the footer, processing time of the request
#
delta = (datetime.now()-request.now).total_seconds()
delta = T('Processing time %s seconds') % round(delta, 2)
style = ["font-size: 10px;",
"margin-left: 10px;",
"margin-bottom: 3ex;",
"margin-top: 2ex;"]
response.write(P(delta, _style="".join(style)))
}}
<script type="text/javascript">
......
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