Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
dcca6cd3
Commit
dcca6cd3
authored
May 22, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some administration scripts
parent
5047b752
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
176 additions
and
1 deletion
+176
-1
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ActivityTool_watchActivities.xml
...kins/erp5_administration/ActivityTool_watchActivities.xml
+82
-0
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_getErrorLogAsRSS.xml
...l_skins/erp5_administration/ERP5Site_getErrorLogAsRSS.xml
+93
-0
bt5/erp5_administration/bt/revision
bt5/erp5_administration/bt/revision
+1
-1
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ActivityTool_watchActivities.xml
0 → 100644
View file @
dcca6cd3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
print \'<html>
<head><meta
http-equiv=
"refresh"
content=
"%s"
></head><body>
\' % refresh_interval\n
\n
for table in \'message\', \'message_queue\':\n
q = """SELECT count(*) AS %(table)s, method_id, processing, processing_node AS node, min(priority) AS min_pri, max(priority) AS max_pri\n
FROM %(table)s GROUP BY method_id, processing, processing_node ORDER BY node""" % dict(table=table)\n
\n
print "
<table
border=
\\"\\"
style=
\\"font-size:XX-small;\\"
><tbody>
<tr><th>
%s
</th>
<th>
method_id
</th>
<th>
processing
</th>
<th>
node
</th>
<th>
min_pri
</th>
<th>
max_pri
</th>
</tr>
" % table\n
for row in context.cmf_activity_sql_connection.manage_test(q):\n
print \'
<tr><td>
%s
</td><td>
%s
</td><td>
%s
</td><td>
%s
</td><td>
%s
</td><td>
%s
<
/td
</tr>
\' % (row[table], row[\'method_id\'], row[\'processing\'], row[\'node\'], row[\'min_pri\'], row[\'max_pri\'])\n
print \'
</tbody>
</table>
<br/>
\'\n
\n
return printed\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
refresh_interval=5
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ActivityTool_watchActivities
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/ERP5Site_getErrorLogAsRSS.xml
0 → 100644
View file @
dcca6cd3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<?xml version="1.0" encoding="utf-8"?>
\n
<rss
version=
"2.0"
>
\n
<channel
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
\n
tal:define=
"error_log python:context.getPortalObject().error_log;\n
dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/html;; charset=utf-8\')"
>
\n
<title
tal:content=
"string:Errors from ${error_log/absolute_url}"
></title>
\n
<description>
Zope Error Log
</description>
\n
<link
tal:content=
"error_log/absolute_url"
></link>
\n
<item
tal:repeat=
"error error_log/getLogEntries"
>
\n
<tal:block
tal:define=
"error_time python:modules[\'DateTime\'].DateTime(error[\'time\'])"
>
\n
<title
tal:content=
"string:${error/userid} ${error/type} ${error/value} ${error_time}"
></title>
\n
<link
tal:content=
"string:${error_log/absolute_url}/showEntry?id=${error/id}"
/>
\n
<description>
\n
<
table
>
\n
<
tr
><
th
>
Login
<
/th
><
td
>
<tal:block
tal:replace=
"error/userid"
/>
<
/td
><
/tr
>
\n
<
tr
><
th
>
Date
<
/th
><
td
>
<tal:block
tal:replace=
"error_time"
/>
<
/td
><
/tr
>
\n
<
tr
><
th
>
URL
<
/th
><
td
>
<tal:block
tal:replace=
"error/url"
/>
<
/td
><
/tr
>
\n
<
tr
><
th
>
Error Type
<
/th
><
td
>
<tal:block
tal:replace=
"error/type"
/>
<
/td
><
/tr
>
\n
<
tr
><
th
>
Error Value
<
/th
><
td
>
<tal:block
tal:replace=
"error/value"
/>
<
/td
><
/tr
>
\n
<
tr
><
th
>
Traceback
<
/th
><
td
>
<tal:block
tal:replace=
"error/tb_html"
/>
<
/td
><
/tr
>
\n
<
tr
><
th
>
Request
<
/th
><
td
>
<tal:block
tal:replace=
"error/req_html"
/>
<
/td
><
/tr
>
\n
<
/table
>
\n
</description>
\n
<guid
tal:content=
"string:${error_log/absolute_url}/showEntry?id=${error/id}"
></guid>
\n
</tal:block>
\n
</item>
\n
</channel>
\n
</rss>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/xml
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_getErrorLogAsRSS
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_administration/bt/revision
View file @
dcca6cd3
161
\ No newline at end of file
162
\ No newline at end of file
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