[Erp5-report] r13082 - /erp5/trunk/products/ERP5Security/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 27 15:50:24 CET 2007
Author: aurel
Date: Tue Feb 27 15:50:22 2007
New Revision: 13082
URL: http://svn.erp5.org?rev=13082&view=rev
Log:
define cache factory
Modified:
erp5/trunk/products/ERP5Security/ERP5GroupManager.py
erp5/trunk/products/ERP5Security/ERP5UserManager.py
Modified: erp5/trunk/products/ERP5Security/ERP5GroupManager.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/ERP5GroupManager.py?rev=13082&r1=13081&r2=13082&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/ERP5GroupManager.py (original)
+++ erp5/trunk/products/ERP5Security/ERP5GroupManager.py Tue Feb 27 15:50:22 2007
@@ -179,7 +179,8 @@
if not NO_CACHE_MODE:
_getGroupsForPrincipal = CachingMethod(_getGroupsForPrincipal,
- id='ERP5GroupManager_getGroupsForPrincipal')
+ id='ERP5GroupManager_getGroupsForPrincipal',
+ cache_factory='erp5_core_short')
return _getGroupsForPrincipal(
user_name=principal.getId(),
Modified: erp5/trunk/products/ERP5Security/ERP5UserManager.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/ERP5UserManager.py?rev=13082&r1=13081&r2=13082&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/ERP5UserManager.py (original)
+++ erp5/trunk/products/ERP5Security/ERP5UserManager.py Tue Feb 27 15:50:22 2007
@@ -108,7 +108,8 @@
return None
_authenticateCredentials = CachingMethod(_authenticateCredentials,
- id='ERP5UserManager_authenticateCredentials')
+ id='ERP5UserManager_authenticateCredentials',
+ cache_factory='erp5_core_short')
return _authenticateCredentials(
login=credentials.get('login'),
password=credentials.get('password'),
@@ -152,7 +153,8 @@
return tuple(user_info)
_enumerateUsers = CachingMethod(_enumerateUsers,
- id='ERP5UserManager_enumerateUsers')
+ id='ERP5UserManager_enumerateUsers',
+ cache_factory='erp5_core_short')
if id is None:
id = login
More information about the Erp5-report
mailing list