Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
d9d5c259
Commit
d9d5c259
authored
5 months ago
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: Drop fetch date from activities
Use recently added API to speed up the rendering.
parent
9da008b1
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
201 deletions
+9
-201
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_getDateForActivityMessage.py
..._administration/ActivityTool_getDateForActivityMessage.py
+0
-11
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_getDateForActivityMessage.xml
...administration/ActivityTool_getDateForActivityMessage.xml
+0
-62
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_viewErrorActivityListAsRSS.xml
...dministration/ActivityTool_viewErrorActivityListAsRSS.xml
+8
-4
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_viewErrorActivityListAsRSS/listbox_pubDate.xml
...tivityTool_viewErrorActivityListAsRSS/listbox_pubDate.xml
+1
-1
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLDictMessage.sql
...administration/ActivityTool_zGetDateForSQLDictMessage.sql
+0
-7
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLDictMessage.xml
...administration/ActivityTool_zGetDateForSQLDictMessage.xml
+0
-53
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLQueueMessage.sql
...dministration/ActivityTool_zGetDateForSQLQueueMessage.sql
+0
-7
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLQueueMessage.xml
...dministration/ActivityTool_zGetDateForSQLQueueMessage.xml
+0
-53
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
...Item/portal_components/test.erp5.testSlapOSCodingStyle.py
+0
-3
No files found.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_getDateForActivityMessage.py
deleted
100644 → 0
View file @
9da008b1
item_list
=
None
if
message
.
activity
[
3
:].
lower
()
==
"dict"
:
item_list
=
context
.
ActivityTool_zGetDateForSQLDictMessage
(
uid
=
str
(
message
.
uid
))
elif
message
.
activity
[
3
:].
lower
()
==
"queue"
:
item_list
=
context
.
ActivityTool_zGetDateForSQLQueueMessage
(
uid
=
str
(
message
.
uid
))
if
item_list
is
not
None
and
len
(
item_list
)
==
1
:
return
item_list
[
0
].
date
raise
ValueError
(
"Unknown Message Type, so we cannot select proper table %s "
%
message
.
activity
[
3
:])
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_getDateForActivityMessage.xml
deleted
100644 → 0
View file @
9da008b1
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
message
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ActivityTool_getDateForActivityMessage
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_viewErrorActivityListAsRSS.xml
View file @
d9d5c259
...
...
@@ -39,7 +39,11 @@
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
Base_doSelect
</string>
</value>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
action_title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -57,7 +61,7 @@
</item>
<item>
<key>
<string>
enctype
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
application/x-www-form-urlencoded
</string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
...
...
@@ -104,11 +108,11 @@
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
ActivityTool_view
ActivityList
</string>
</value>
<value>
<string>
ActivityTool_view
ErrorActivityListAsRSS
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
<value>
<string>
form_list
</string>
</value>
<value>
<string>
rss_view
</string>
</value>
</item>
<item>
<key>
<string>
row_length
</string>
</key>
...
...
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_viewErrorActivityListAsRSS/listbox_pubDate.xml
View file @
d9d5c259
...
...
@@ -125,7 +125,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python:
here.ActivityTool_getDateForActivityMessage(cell)
</string>
</value>
<value>
<string>
python:
cell.date
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLDictMessage.sql
deleted
100644 → 0
View file @
9da008b1
select
date
from
message
where
uid
=
<
dtml
-
sqlvar
uid
type
=
"int"
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLDictMessage.xml
deleted
100644 → 0
View file @
9da008b1
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_col
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
date
</string>
</value>
</item>
<item>
<key>
<string>
null
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
d
</string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
26
</int>
</value>
</item>
</dictionary>
</list>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid
</string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
cmf_activity_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ActivityTool_zGetDateForSQLDictMessage
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLQueueMessage.sql
deleted
100644 → 0
View file @
9da008b1
select
date
from
message_queue
where
uid
=
<
dtml
-
sqlvar
uid
type
=
"int"
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/ActivityTool_zGetDateForSQLQueueMessage.xml
deleted
100644 → 0
View file @
9da008b1
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_col
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
date
</string>
</value>
</item>
<item>
<key>
<string>
null
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
d
</string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
26
</int>
</value>
</item>
</dictionary>
</list>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
uid
</string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
cmf_activity_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ActivityTool_zGetDateForSQLQueueMessage
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
This diff is collapsed.
Click to expand it.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
View file @
d9d5c259
...
...
@@ -191,9 +191,6 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
'slapos_upgrader/ERP5Site_upgradeERP5CoreBusinessTemplate'
,
'slapos_upgrader/ERP5Site_upgradeUpgraderBusinessTemplate'
,
'slapos_rss_style/WebSection_getLegacyMessageList'
,
'slapos_administration/ActivityTool_getDateForActivityMessage'
,
'slapos_administration/ActivityTool_zGetDateForSQLDictMessage'
,
'slapos_administration/ActivityTool_zGetDateForSQLQueueMessage'
,
'slapos_administration/Base_checkStoredBrokenState'
,
'slapos_administration/ERP5Site_cleanUnusedSecurityUid'
,
'slapos_administration/ERP5Site_getSecurityUidStat'
,
...
...
This diff is collapsed.
Click to expand it.
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