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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
erp5
Commits
19708a88
Commit
19708a88
authored
Feb 19, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get scripts from portal
parent
de0a9cca
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml
...redential/ERP5Site_getRelatedCredentialQuestionDialog.xml
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
..._skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
+3
-3
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRequest.xml
...l_skins/erp5_credential/ERP5Site_newCredentialRequest.xml
+2
-2
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
...ns/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
+3
-3
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml
View file @
19708a88
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
Proxy : this required a manager proxy role to be able to search in all persons\n
Proxy : this required a manager proxy role to be able to search in all persons\n
\'\'\'\n
\'\'\'\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
person_module =
context
.getDefaultModule(\'Person\')\n
person_module =
portal
.getDefaultModule(\'Person\')\n
if choice == "password":\n
if choice == "password":\n
request = context.REQUEST\n
request = context.REQUEST\n
request.set(\'reference\', reference)\n
request.set(\'reference\', reference)\n
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRecovery.xml
View file @
19708a88
...
@@ -64,7 +64,7 @@ def createCredentialRecovery(**kw):\n
...
@@ -64,7 +64,7 @@ def createCredentialRecovery(**kw):\n
credential_recovery.submit()\n
credential_recovery.submit()\n
\n
\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
portal_preferences =
context
.portal_preferences\n
portal_preferences =
portal
.portal_preferences\n
keep_items = {}\n
keep_items = {}\n
\n
\n
if default_email_text is not None:\n
if default_email_text is not None:\n
...
@@ -73,8 +73,8 @@ if default_email_text is not None:\n
...
@@ -73,8 +73,8 @@ if default_email_text is not None:\n
query_kw = {"email.url_string" : default_email_text}\n
query_kw = {"email.url_string" : default_email_text}\n
result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n
result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n
if len(result) == 0:\n
if len(result) == 0:\n
portal_status_message =
context
.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
portal_status_message =
portal
.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
return
context
.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n
return
portal
.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n
\n
\n
person_list = [x.getObject().getParentValue() for x in result]\n
person_list = [x.getObject().getParentValue() for x in result]\n
\n
\n
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newCredentialRequest.xml
View file @
19708a88
...
@@ -56,8 +56,8 @@ reference -- User login is mandatory (String)\n
...
@@ -56,8 +56,8 @@ reference -- User login is mandatory (String)\n
default_email_text -- Email is mandatory (String)"""\n
default_email_text -- Email is mandatory (String)"""\n
# create the credential request\n
# create the credential request\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
module =
context
.getDefaultModule(portal_type=\'Credential Request\')\n
module =
portal
.getDefaultModule(portal_type=\'Credential Request\')\n
portal_preferences =
context
.portal_preferences\n
portal_preferences =
portal
.portal_preferences\n
category_list = portal_preferences.getPreferredSubscriptionAssignmentCategoryList()\n
category_list = portal_preferences.getPreferredSubscriptionAssignmentCategoryList()\n
\n
\n
if not context.CredentialRequest_checkLoginAvailability(reference):\n
if not context.CredentialRequest_checkLoginAvailability(reference):\n
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
View file @
19708a88
...
@@ -52,13 +52,13 @@
...
@@ -52,13 +52,13 @@
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""Create a credential update in relation with the person object of current user"""\n
<value>
<string>
"""Create a credential update in relation with the person object of current user"""\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
person =
context
.ERP5Site_getAuthenticatedMemberPersonValue()\n
person =
portal
.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
\n
if person is None:\n
if person is None:\n
portal_status_message = "Can\'t find corresponding person, it\'s not possible to update your credentials."\n
portal_status_message = "Can\'t find corresponding person, it\'s not possible to update your credentials."\n
else:\n
else:\n
# create the credential update\n
# create the credential update\n
module =
context
.getDefaultModule(portal_type=\'Credential Update\')\n
module =
portal
.getDefaultModule(portal_type=\'Credential Update\')\n
credential_update = module.newContent(\n
credential_update = module.newContent(\n
portal_type="Credential Update",\n
portal_type="Credential Update",\n
first_name=first_name,\n
first_name=first_name,\n
...
@@ -99,7 +99,7 @@ else:\n
...
@@ -99,7 +99,7 @@ else:\n
portal_status_message = "Password changed."\n
portal_status_message = "Password changed."\n
\n
\n
portal_status_message = context.Base_translateString(portal_status_message)\n
portal_status_message = context.Base_translateString(portal_status_message)\n
portal.Base_redirect(keep_items = {\'portal_status_message\': portal_status_message})\n
return
portal.Base_redirect(keep_items = {\'portal_status_message\': portal_status_message})\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
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