Commit f22b5a0e authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fix spacing. Replace if not m by if m is not None.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17605 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4feee813
...@@ -227,12 +227,12 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -227,12 +227,12 @@ class ERP5TypeInformation( FactoryTypeInformation,
m = getattr(p, self.factory, None) m = getattr(p, self.factory, None)
if m: if m is not None:
try: try:
# validate() can either raise Unauthorized or return 0 to # validate() can either raise Unauthorized or return 0 to
# mean unauthorized. # mean unauthorized.
permission = self.permission permission = self.permission
if permission and _checkPermission( permission, container ): if permission and _checkPermission(permission, container):
return m return m
elif getSecurityManager().validate(p, p, self.factory, m): elif getSecurityManager().validate(p, p, self.factory, m):
return m return m
......
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