Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lu Xu
erp5
Commits
a968df84
You need to sign in or sign up before continuing.
Commit
a968df84
authored
11 years ago
by
Jérome Perrin
Browse files
Options
Download
Email Patches
Plain Diff
credential: rename alarm script to match convention and apply a limit to catalog searches
parent
d0e364f4
master
erp5-vifib
imagefield
monitor
test-ui
test-rjsacc
test-rjs
renderjs-test
erp5.util-0.4.58
erp5.util-0.4.57
erp5.util-0.4.56
erp5.util-0.4.55
erp5.util-0.4.54
erp5.util-0.4.53
erp5.util-0.4.52
erp5.util-0.4.49
erp5.util-0.4.46
erp5.util-0.4.44
erp5.util-0.4.43
erp5.util-0.4.41
erp5.util-0.4.40
erp5.util-0.4.37
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bt5/erp5_credential/PathTemplateItem/portal_alarms/accept_submitted_credentials.xml
+1
-1
...mplateItem/portal_alarms/accept_submitted_credentials.xml
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Alarm_acceptSubmittedCredentialList.xml
+14
-7
...s/erp5_credential/Alarm_acceptSubmittedCredentialList.xml
bt5/erp5_credential/bt/revision
+1
-1
bt5/erp5_credential/bt/revision
with
16 additions
and
9 deletions
+16
-9
bt5/erp5_credential/PathTemplateItem/portal_alarms/accept_submitted_credentials.xml
+
1
-
1
View file @
a968df84
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<value>
<string>
ERP5Site
_acceptSubmittedCredential
s
</string>
</value>
<value>
<string>
Alarm
_acceptSubmittedCredential
List
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/
ERP5Site
_acceptSubmittedCredential
s
.xml
→
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/
Alarm
_acceptSubmittedCredential
List
.xml
+
14
-
7
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
_acceptSubmittedCredential
s
</string>
</value>
<value>
<string>
Alarm
_acceptSubmittedCredential
List
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_credential/bt/revision
+
1
-
1
View file @
a968df84
428
\ No newline at end of file
429
\ No newline at end of file
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
Menu
Projects
Groups
Snippets
Help