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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
a32aac50
Commit
a32aac50
authored
Jan 30, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent needless failures by trying to execute an alarm which is not
enabled.
parent
e1209b39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Call_alarmActiveSense.xml
...al_interaction_workflow/scripts/Call_alarmActiveSense.xml
+7
-2
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Call_alarmActiveSense.xml
View file @
a32aac50
...
...
@@ -53,8 +53,13 @@
<value>
<string>
portal = state_change[\'object\'].getPortalObject()\n
tag = \'%s_reindex\' % state_change[\'object\'].getRelativeUrl()\n
activate_kw = {\'tag\': tag} \n
state_change[\'object\'].reindexObject(activate_kw=activate_kw) \n
portal.portal_alarms.accept_submitted_credentials.activate(activity=\'SQLDict\', after_tag=tag).activeSense()\n
state_change[\'object\'].reindexObject(activate_kw=activate_kw)\n
\n
# call alarm to speed up account creation process\n
# only if alarm is enabled\n
alarm = portal.portal_alarms.accept_submitted_credentials\n
if alarm.isEnabled():\n
alarm.activate(activity=\'SQLDict\', after_tag=tag).activeSense()\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_credential/bt/revision
View file @
a32aac50
408
\ No newline at end of file
409
\ 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