Skip to content

Commit

Permalink
Fix bug when getting propertysheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed May 17, 2019
1 parent e674a05 commit 0ce0084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OFS/PropertySheets.py
Expand Up @@ -470,7 +470,8 @@ def items(self):
def get(self, name, default=None):
for propset in self.__propsets__():
if propset.id == name or \
getattr(propset, 'xml_namespace', None) == name:
getattr(propset, 'xml_namespace', None) is not None and \
propset.xml_namespace() == name:
return propset.__of__(self)
return default

Expand Down

0 comments on commit 0ce0084

Please sign in to comment.