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
Hamza
erp5
Commits
a968df84
Commit
a968df84
authored
Mar 18, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credential: rename alarm script to match convention and apply a limit to catalog searches
parent
d0e364f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
bt5/erp5_credential/PathTemplateItem/portal_alarms/accept_submitted_credentials.xml
...mplateItem/portal_alarms/accept_submitted_credentials.xml
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Alarm_acceptSubmittedCredentialList.xml
...s/erp5_credential/Alarm_acceptSubmittedCredentialList.xml
+14
-7
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/PathTemplateItem/portal_alarms/accept_submitted_credentials.xml
View file @
a968df84
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<value>
<string>
ERP5Site_acceptSubmittedCredentials
</string>
</value>
<value>
<string>
Alarm_acceptSubmittedCredentialList
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/
ERP5Site_acceptSubmittedCredentials
.xml
→
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/
Alarm_acceptSubmittedCredentialList
.xml
View file @
a968df84
...
...
@@ -50,12 +50,15 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
limit = context.getProperty(\'limit\', 100)\n
\n
portal = context.getPortalObject()\n
\n
if portal.portal_preferences.getPreferredCredentialRequestAutomaticApproval():\n
module = context.getDefaultModule(\'Credential Request\')\n
result = module.searchFolder(portal_type=\'Credential Request\',\n
validation_state=\'submitted\')\n
validation_state=\'submitted\',\n
limit=limit)\n
for document in result:\n
if document.getValidationState() == \'submitted\':\n
document.accept()\n
...
...
@@ -64,7 +67,8 @@ if portal.portal_preferences.getPreferredPersonCredentialUpdateAutomaticApproval
portal.portal_preferences.getPreferredOrganisationCredentialUpdateAutomaticApproval():\n
module = context.getDefaultModule(\'Credential Update\')\n
result = module.searchFolder(portal_type=\'Credential Update\',\n
validation_state=\'submitted\')\n
validation_state=\'submitted\',\n
limit=limit)\n
for document in result:\n
if document.getValidationState() == \'submitted\':\n
document.accept()\n
...
...
@@ -72,7 +76,8 @@ elif portal.portal_preferences.getPreferredPersonCredentialUpdateAutomaticApprov
not portal.portal_preferences.getPreferredOrganisationCredentialUpdateAutomaticApproval():\n
module = context.getDefaultModule(\'Credential Update\')\n
result = module.searchFolder(portal_type=\'Credential Update\',\n
validation_state=\'submitted\')\n
validation_state=\'submitted\',\n
limit=limit)\n
for document in result:\n
if document.getDestinationDecisionValue().getPortalType() == \'Person\':\n
if document.getValidationState() == \'submitted\':\n
...
...
@@ -81,7 +86,8 @@ elif not portal.portal_preferences.getPreferredPersonCredentialUpdateAutomaticAp
portal.portal_preferences.getPreferredOrganisationCredentialUpdateAutomaticApproval():\n
module = context.getDefaultModule(\'Credential Update\')\n
result = module.searchFolder(portal_type=\'Credential Update\',\n
validation_state=\'submitted\')\n
validation_state=\'submitted\',\n
limit=limit)\n
for document in result:\n
if document.getDestinationDecisionValue().getPortalType() == \'Organisation\':\n
if document.getValidationState() == \'submitted\':\n
...
...
@@ -90,7 +96,8 @@ elif not portal.portal_preferences.getPreferredPersonCredentialUpdateAutomaticAp
if portal.portal_preferences.getPreferredCredentialRecoveryAutomaticApproval():\n
module = context.getDefaultModule(\'Credential Recovery\')\n
result = module.searchFolder(portal_type=\'Credential Recovery\',\n
validation_state=\'submitted\')\n
validation_state=\'submitted\',\n
limit=limit)\n
for document in result:\n
if document.getValidationState() == \'submitted\':\n
document.accept()\n
...
...
@@ -102,7 +109,7 @@ if portal.portal_preferences.getPreferredCredentialRecoveryAutomaticApproval():\
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_acceptSubmittedCredentials
</string>
</value>
<value>
<string>
Alarm_acceptSubmittedCredentialList
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_credential/bt/revision
View file @
a968df84
428
\ No newline at end of file
429
\ 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