Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
2ba1f097
Commit
2ba1f097
authored
Mar 06, 2015
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introspection: slightly improve the tail event log
next steps will be to change it to an erp5 renderjs gadget
parent
d4913cb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/IntrospectionTool_tailEventLog.xml
...ns/erp5_administration/IntrospectionTool_tailEventLog.xml
+15
-11
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/IntrospectionTool_tailEventLog.xml
View file @
2ba1f097
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
if (timer == "stop") {\n
if (timer == "stop") {\n
stopTail();\n
stopTail();\n
} else {\n
} else {\n
t= setTimeout("getLog()",
40
00);\n
t= setTimeout("getLog()",
5
00);\n
}\n
}\n
}\n
}\n
\n
\n
...
@@ -86,20 +86,22 @@
...
@@ -86,20 +86,22 @@
}\n
}\n
\n
\n
function updatePage() {\n
function updatePage() {\n
var logDiv = document.getElementById("log"), logLine; today = new Date();\n
var message_div = document.getElementById("message");\n
if (request.readyState == 4) {\n
if (request.readyState == 4) {\n
if (request.status == 200) {\n
if (request.status == 200) {\n
var currentLogValue = request.responseText.split("\\n");\n
var currentLogValue = request.responseText.split("\\n");\n
eval(currentLogValue);\n
logDiv = document.getElementById("log");\n
var logLine = \' \';\n
var logLine = \' \';\n
for (i=0; i
< currentLogValue.length
-
1;
i++)
{\n
for (i=0; i
< currentLogValue.length
-
1;
i++)
{\n
logLine
+=
currentLogValue[i]
+
\'
<br
/>
\\n\';\n
logLine
+=
currentLogValue[i]
+
\'\\n\';\n
}\n
}\n
logDiv.innerHTML=
logLine;\n
logDiv.innerHTML=
logLine;\n
logDiv.scrollTop =
logDiv.scrollHeight;\n
message_div.innerHTML=
"Date : "
+
today.toTimeString();\n
}
else
{\n
}
else
{\n
logDiv = document.getElementById("log");\n
logLine =
"Error! Request status is "
+
request.status;\n
logLine =
"Error! Request status is "
+
request.status;\n
logDiv.innerHTML=logLine;\n
message_div.innerHTML=
logLine;\n
\n
}\n
}\n
}\n
}\n
}\n
}\n
...
@@ -107,17 +109,19 @@
...
@@ -107,17 +109,19 @@
</head>
\n
</head>
\n
<span
tal:define=
"global tailer python:context.getPortalObject().portal_introspections.absolute_url()+\'/tailEventLog\'"
>
\n
<span
tal:define=
"global tailer python:context.getPortalObject().portal_introspections.absolute_url()+\'/tailEventLog\'"
>
\n
<body
tal:attributes=
"onload string:init(\'$tailer\')"
>
\n
<body
tal:attributes=
"onload string:init(\'$tailer\')"
>
\n
<div
id=
"toolbar"
>
\n
<button
tal:attributes=
"onclick string:getLog(\'start\')"
>
Start Log
</button>
\n
<button
tal:attributes=
"onclick string:getLog(\'start\')"
>
Start Log
</button>
\n
<button
onclick=
"stopTail();"
>
Stop Log
</button>
\n
<button
onclick=
"stopTail();"
>
Stop Log
</button>
\n
<div
id=
"log"
style=
"border:solid 1px #dddddd; margin-left:25px; font-size:9px;\n
<span
id=
"message"
>
Press Start...
</span>
\n
</div>
\n
<textarea
id=
"log"
style=
"border:solid 1px #dddddd; margin-left:25px; font-size:9px;\n
padding-left:5px; padding-right:10px; padding-top:10px; padding-bottom:20px;\n
padding-left:5px; padding-right:10px; padding-top:10px; padding-bottom:20px;\n
margin-top:10px; margin-bottom:10px; width:90%; text-align:left;"
>
\n
margin-top:10px; margin-bottom:10px;
height:90%;
width:90%; text-align:left;"
>
\n
This is the Event Log Viewer. To begin viewing the log live in this window, click Start Viewer. To stop the window refreshes, click Pause Viewer.\n
This is the Event Log Viewer. To begin viewing the log live in this window, click Start Viewer. To stop the window refreshes, click Pause Viewer.\n
</
div
>
\n
</
textarea
>
\n
</body>
\n
</body>
\n
</span>
\n
</span>
\n
</html>
\n
</html>
]]>
</unicode>
</value>
]]>
</unicode>
</value>
</item>
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment