Skip to content

Commit a03ba3c

Browse files
committed
fix
1 parent 7ca3fac commit a03ba3c

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"collective.regenv",
5757
"pas.plugins.ldap>=1.8.0",
5858
"yafowil.plone>=5.0.0a1",
59-
"yafowil-bootstrap==2.0.0a2",
59+
"yafowil.bootstrap>=2.0.0a1",
6060
],
6161
extras_require={
6262
"test": [

src/redturtle/pasldap/resilient.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def _wrapper(self, user_or_group, request=None):
9292
else:
9393
logger.info("MISS: getPropertiesForUser %s", cache_key)
9494
sheet = orig(self, user_or_group, request)
95+
if not hasattr(sheet, "_properties"):
96+
logger.warning("missing _properies for %s", cache_key)
97+
return sheet
9598
if not hasattr(self, "_cache_properties"):
9699
self._cache_properties = PersistentMapping()
97100
safeWrite(self)

src/redturtle/pasldap/subscribers/pas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55

66
def loggedin(event):
7-
print("Logged in")
7+
if not hasattr(event.principal, "getOrderedPropertySheets"):
8+
return
89
cache_key = event.principal.getId()
910
portal = api.portal.get()
1011
for psheet in event.principal.getOrderedPropertySheets():

src/redturtle/pasldap/subscribers/startup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def site_load(event):
4040
# plone.many_users and plone.many_groups
4141

4242
# XXX: verify using collective.regenv
43-
if not portal.portal_registry.get("plone.many_users"):
44-
logger.warning("[LDAP] plone.many_users not set")
43+
# if not portal.portal_registry.get("plone.many_users"):
44+
# logger.warning("[LDAP] plone.many_users not set")
4545

4646
finally:
4747
conn.close()

0 commit comments

Comments
 (0)