[Zope] add user from python problem
garry saddington
garry at schoolteachers.co.uk
Thu Feb 15 14:17:59 EST 2007
On Thu, 2007-02-15 at 19:35 +0100, Andreas Jung wrote:
>
> --On 15. Februar 2007 18:31:46 +0000 garry saddington
> <garry at schoolteachers.co.uk> wrote:
>
> > On Thu, 2007-02-15 at 18:58 +0100, Andreas Jung wrote:
> >>
> >> --On 15. Februar 2007 17:34:10 +0000 garry saddington
> >> <garry at schoolteachers.co.uk> wrote:
> >>
> >>
> >> >
> >> >
> >> >
> >> > roles='Manager'
> >>
> >> As the name 'roles' indicates you have to specify a sequence of roles
> >> and not a *single* one.
> >>
> >> -aj
> > Thanks this has fixed it but I still have questions:
>
> > 1/Why can I specify only one when adding a user in the ZMI?
>
> Isn't ['Manager'] a sequence of roles? A sequence of one role?
Of course - sorry
>
> > 2/What if I only want one role for the user?
>
> See above.
>
> > 3/Why does it accept the one role from my script - it is highlighted
> > when I go to the ZMI?
>
What is confusing me is that with the problem script the user seems to
be added with the correct role but only activated after the change user
button is pressed. ie. The script does not report any errors and appears
to complete.
Anyway thanks for your help
regards
Garry
More information about the Zope
mailing list