[Zope-PAS] any examples of adding a property to a user?

Rick Hurst rick.hurst at gmail.com
Fri Feb 6 12:54:35 EST 2009

On Fri, Feb 6, 2009 at 5:13 PM, Rick Hurst <rick.hurst at gmail.com> wrote:
> ok, now i'm up and running, my next task is to add some custom
> properties to users via a script. Can anyone point me to any examples?
> I have to admit i'm a little bit out of my depth - all I know at the
> moment is that it is possible to add custom properties to users using
> "property sheets"..

ok, maybe I thought this was more complex than it actually is - I just
suceeded in adding a property like this:-

acl_users = self.acl_users
user = acl_users.getUser(name='test_pas_user')
user.manage_addProperty('member_area', 'foo bar', type='string')

then to get the property back:-


Rick Hurst, Freelance Web Developer, Bristol, UK

More information about the Zope-PAS mailing list