[CMF-checkins] CVS: CMF/CMFDefault - MembershipTool.py:1.44
Florent Guillaume
fg at nuxeo.com
Tue Feb 10 16:02:10 EST 2004
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv31469
Modified Files:
MembershipTool.py
Log Message:
Make sure we don't acquire.
=== CMF/CMFDefault/MembershipTool.py 1.43 => 1.44 ===
--- CMF/CMFDefault/MembershipTool.py:1.43 Tue Feb 10 15:07:57 2004
+++ CMF/CMFDefault/MembershipTool.py Tue Feb 10 16:02:09 2004
@@ -275,14 +275,12 @@
id = member.getMemberId()
members = self.getMembersFolder()
if members:
- try:
+ if hasattr(aq_base(members), id):
folder = getattr(members, id)
if verifyPermission and not _checkPermission(View, folder):
# Don't return the folder if the user can't get to it.
return None
return folder
- except AttributeError:
- pass
return None
def getHomeUrl(self, id=None, verifyPermission=0):
More information about the CMF-checkins
mailing list