On Fri, Feb 6, 2009 at 5:13 PM, Rick Hurst <rick.hu...@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
Zope-PAS mailing list