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

Chris Withers lists at simplistix.co.uk
Wed Mar 17 08:02:45 EST 2004


Zachery Bir wrote:

>             if hasattr(object, '__ac_local_roles__'):
>                 if object.__ac_local_roles__ is None:
>                     user=getSecurityManager().getUser()
>                     if user is not None:
>                         id=user.getId()
>                         name=user.getUserName()
>                         if name != 'Anonymous User':
>                             object.manage_setLocalRoles(id, ['Owner'])

so what happens in name IS Anonymous User?!

This all feels pretty messy and half cocked from the checkins I've seen...

Chris

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




More information about the Zope-CMF mailing list