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
Łukasz Nowak
erp5
Commits
4e989a8a
Commit
4e989a8a
authored
Jun 30, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Never use the expression "if obj" whenever obj is not a simple type.
parent
3c5b38c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml
...5_credential/ERP5Site_newOrganisationCredentialUpdate.xml
+1
-1
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
...ns/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
+1
-1
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml
View file @
4e989a8a
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<value>
<string>
"""Create a new credential update"""\n
<value>
<string>
"""Create a new credential update"""\n
portal_status_message=""\n
portal_status_message=""\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
if
not person
:\n
if
person is None
:\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
else:\n
else:\n
organisation = person.getSubordinationValue()\n
organisation = person.getSubordinationValue()\n
...
...
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newPersonCredentialUpdate.xml
View file @
4e989a8a
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<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
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n
\n
if
not person
:\n
if
person is None
:\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
portal_status_message = context.Base_translateString("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
...
...
bt5/erp5_credential/bt/revision
View file @
4e989a8a
359
360
\ No newline at end of file
\ 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