-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08.03.2009 9:42 Uhr, Lennart Regebro wrote: > On Sun, Mar 8, 2009 at 08:07, Dvir Bar-lev <dvi...@puresight.com> wrote: >> K, ill try to explain in more detail. :) >> What I want to do is this: >> >> I create 2 roles in zope - manager and client for example. >> I than create 2 users - zoe and don. >> Zoe has password A and role manager and don has password B and role client. >> Now I go to the log in page of my site, it has 2 fields - username and >> password. >> What I want to do is this: >> If the user puts in the fileds zoe and A I want to be able to identify the >> user zoe with the role manager > > You already have. You gave Zoe the role "Manager", you say. OK. Done. > You don't need to do anything more. > > > I suspect you still need to explain, not what you are trying to do, > but what you are trying to achieve. Explain the usecase.
Write a form with two fields username + password, configure the cookie crumbler in order to intercept both name from the request for authentication. Within the script called by the form you can check the roles assigned to the current user and perform the redirection as needed. This is trivial. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkmzkmsACgkQCJIWIbr9KYw/pwCfUfEQdYig9yIxYfmlm+crPIWQ NwkAoNGzTfPakrlRmIfUrBCoOjN9rbR5 =2LW/ -----END PGP SIGNATURE-----
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:i...@zopyx.com title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )