K, here goes, explanation 3 :)

This is what I would like to happen:

A user goes to the site, he see the log in screen that has 2 entry
fields - user name and password.
The user enteres the data and presses the submit button.
Now I want to take what the user entered and see if I have the same user
and password defined in acl_users folder, if so I want to give him the
role that that user in the acl_users folder have.
And than based on that role direct him to the appropriate page

What I don't want is that the zope will pop up his log in window, in
essence I want to do my own authentication, validation and role

Ihope this clears up what I want, I thought about using the PAS plugin
but I have no idea how to use it and I was told I can do what I want
without using any plugins at all.

-----Original Message-----
From: Lennart Regebro [mailto:rege...@gmail.com] 
Sent: Sunday, March 08, 2009 10:42 AM
To: Dvir Bar-lev
Cc: zope@zope.org
Subject: Re: [Zope] how to check a user role with data entred by user?

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
> Now I go to the log in page of my site, it has 2 fields - username and
> 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.

Lennart Regebro: Pythonista, Barista, Notsotrista.
+33 661 58 14 64
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to