Commit 4e989a8a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Never use the expression "if obj" whenever obj is not a simple type.

parent 3c5b38c8
......@@ -53,7 +53,7 @@
<value> <string>"""Create a new credential update"""\n
portal_status_message=""\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
else:\n
organisation = person.getSubordinationValue()\n
......
......@@ -53,7 +53,7 @@
<value> <string>"""Create a credential update in relation with the person object of current user"""\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\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
else:\n
# create the credential update\n
......
359
\ No newline at end of file
360
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment