[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.163.12.4

Chris Withers lists at simplistix.co.uk
Wed Mar 17 03:37:59 EST 2004


Where are the tests to back this up?!

Chris

Zachery Bir wrote:

> Update of /cvs-repository/Zope/lib/python/OFS
> In directory cvs.zope.org:/tmp/cvs-serv10278
> 
> Modified Files:
>       Tag: Zope-2_7-branch
> 	ObjectManager.py 
> Log Message:
> Local Roles should be keyed to the user's Id, not Username, especially
> when external user folders can specify a difference.
> 
> 
> === Zope/lib/python/OFS/ObjectManager.py 1.163.12.3 => 1.163.12.4 ===
> --- Zope/lib/python/OFS/ObjectManager.py:1.163.12.3	Mon Dec 15 17:12:06 2003
> +++ Zope/lib/python/OFS/ObjectManager.py	Tue Mar 16 16:54:48 2004
> @@ -270,7 +270,7 @@
>                  if object.__ac_local_roles__ is None:
>                      user=getSecurityManager().getUser()
>                      if user is not None:
> -                        name=user.getUserName()
> +                        name=user.getId()
>                          if name != 'Anonymous User':
>                              object.manage_setLocalRoles(name, ['Owner'])
>  
> 
> 
> _______________________________________________
> Zope-Checkins maillist  -  Zope-Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/zope-checkins
> 

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope-Checkins mailing list