[Zope-CVS] CVS: Products/PluggableAuthService -
PluggableAuthService.py:1.19.2.8
Jens Vagelpohl
jens at dataflake.org
Mon Nov 8 04:24:32 EST 2004
Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv11866
Modified Files:
Tag: jens-implement_caching_branch
PluggableAuthService.py
Log Message:
- prevent Persistent user objects from being cached
=== Products/PluggableAuthService/PluggableAuthService.py 1.19.2.7 => 1.19.2.8 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.19.2.7 Mon Nov 8 04:17:37 2004
+++ Products/PluggableAuthService/PluggableAuthService.py Mon Nov 8 04:24:32 2004
@@ -864,10 +864,12 @@
user._addRoles( ['Authenticated'] )
# Cache the user if caching is enabled
- self.ZCacheable_set( aq_base(user)
- , view_name=view_name
- , keywords=keywords
- )
+ base_user = aq_base(user)
+ if getattr(base_user, '_p_jar', None) is None:
+ self.ZCacheable_set( base_user
+ , view_name=view_name
+ , keywords=keywords
+ )
return user.__of__( self )
More information about the Zope-CVS
mailing list