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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Niegsch
erp5
Commits
b58d0f9d
Commit
b58d0f9d
authored
May 28, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forge: drop "send open bug reminder" alarm
I don't think anybody still uses this.
parent
0aa7b0f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
276 deletions
+0
-276
bt5/erp5_forge/PathTemplateItem/portal_alarms/open_bugs_alarm.xml
..._forge/PathTemplateItem/portal_alarms/open_bugs_alarm.xml
+0
-171
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/BugModule_sendOpenBugListReminder.py
...tal_skins/erp5_forge/BugModule_sendOpenBugListReminder.py
+0
-42
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/BugModule_sendOpenBugListReminder.xml
...al_skins/erp5_forge/BugModule_sendOpenBugListReminder.xml
+0
-62
bt5/erp5_forge/bt/template_path_list
bt5/erp5_forge/bt/template_path_list
+0
-1
No files found.
bt5/erp5_forge/PathTemplateItem/portal_alarms/open_bugs_alarm.xml
deleted
100644 → 0
View file @
0aa7b0f0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Alarm"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<value>
<string>
BugModule_sendOpenBugListReminder
</string>
</value>
</item>
<item>
<key>
<string>
alarm_date
</string>
</key>
<value>
<object>
<klass>
<global
id=
"1.1"
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1158577260.0
</float>
<string>
GMT+2
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Sends a summary email with all open bugs.
</string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
open_bugs_alarm
</string>
</value>
</item>
<item>
<key>
<string>
periodicity_day_frequency
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
periodicity_hour
</string>
</key>
<value>
<tuple>
<int>
13
</int>
</tuple>
</value>
</item>
<item>
<key>
<string>
periodicity_hour_frequency
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
periodicity_minute
</string>
</key>
<value>
<tuple>
<int>
1
</int>
</tuple>
</value>
</item>
<item>
<key>
<string>
periodicity_minute_frequency
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
periodicity_month
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_month_day
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_month_frequency
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
periodicity_start_date
</string>
</key>
<value>
<object>
<klass>
<reference
id=
"1.1"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1157061600.0
</float>
<string>
GMT+2
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
periodicity_stop_date
</string>
</key>
<value>
<object>
<klass>
<reference
id=
"1.1"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
32503676400.0
</float>
<string>
GMT+1
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
periodicity_week
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_week_day
</string>
</key>
<value>
<tuple>
<string>
Monday
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
periodicity_week_frequency
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Alarm
</string>
</value>
</item>
<item>
<key>
<string>
sense_method_id
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Open bugs alarm
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/BugModule_sendOpenBugListReminder.py
deleted
100644 → 0
View file @
0aa7b0f0
portal
=
context
.
getPortalObject
()
bug_module
=
portal
.
bug_module
server_url
=
portal
.
ERP5Site_getAbsoluteUrl
()
body_text_line_list
=
[]
addBodyLine
=
body_text_line_list
.
append
bug_count
=
0
assigned_to_dict
=
{}
not_assigned_bug_list
=
[]
for
bug
in
bug_module
.
searchFolder
(
portal_type
=
'Bug'
,
simulation_state
=
(
'confirmed'
,
'set_ready'
,),
sort_on
=
((
'id'
,
'asc'
,
'int'
),)):
bug
=
bug
.
getObject
()
if
bug
.
getSource
():
assigned_to_dict
.
setdefault
(
bug
.
getSource
(),
[]).
append
(
bug
)
else
:
not_assigned_bug_list
.
append
(
bug
)
bug_count
+=
1
for
assignee
,
bug_list
in
assigned_to_dict
.
items
():
addBodyLine
(
" Assigned to %s:"
%
bug_list
[
0
].
getSourceTitle
())
for
bug
in
bug_list
:
addBodyLine
(
" [%s] %s"
%
(
bug
.
getReference
(),
bug
.
getTitle
()))
addBodyLine
(
" %s/%s/view"
%
(
server_url
,
bug
.
getRelativeUrl
()))
addBodyLine
(
''
)
addBodyLine
(
''
)
if
not_assigned_bug_list
:
addBodyLine
(
''
)
addBodyLine
(
" Not assigned:"
)
for
bug
in
not_assigned_bug_list
:
addBodyLine
(
" [%s] %s"
%
(
bug
.
getReference
(),
bug
.
getTitle
()))
addBodyLine
(
" %s/%s/view"
%
(
server_url
,
bug
.
getRelativeUrl
()))
addBodyLine
(
''
)
if
bug_count
:
portal
.
portal_notifications
.
sendMessage
(
sender
=
None
,
recipient
=
[],
subject
=
"%s: %s Open Bugs"
%
(
portal
.
title_or_id
(),
bug_count
,),
message
=
'
\
n
'
.
join
(
body_text_line_list
))
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/BugModule_sendOpenBugListReminder.xml
deleted
100644 → 0
View file @
0aa7b0f0
<?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>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
BugModule_sendOpenBugListReminder
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_forge/bt/template_path_list
View file @
b58d0f9d
portal_alarms/open_bugs_alarm
portal_categories/business_field/*
portal_categories/business_field/*
portal_domains/state_bug_domain
portal_domains/state_bug_domain
\ 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