[Zope] create Login/Logout functionality

Paavo Parkkinen pparkkin@verso.st.jyu.fi
Mon, 5 May 2003 12:29:12 +0300


On Mon, 05.05.2003 at 11:19 +0200, Andreas Pakulat wrote:
> On 03.Mai 2003 - 17:38:10, Troy Farrell wrote:
> > Look in the source for 'manage_zmi_logout' in 
> > zopedir/lib/python/App/Management.py
> 
> That doesn't help me much, I see that I can call manage_zmi_logout to
> logout the user, but how do I get him to log in?

I believe manage_zmi_logout opens the login pop-up window.

> I don't think that I can do it with such a message box, as far as I can
> see, this can only be done, by setting the permissions on the file. But
> this doesn't work for me, as anybody should be able to view a certain
> page, but only logged in users should see a link that points to an
> edit-form
> 
> So the question is, which method to call if I have a username and a
> password, I didn't find anything in the UserFolder API. I will try to
> look further on the source of the API, but maybe someone can directly
> point me to the right spot.

We had a similar problem, and we used the CookieCrumbler product. It
doesn't open a pop-up window to login, but you can use a custom login
form.

-- 
paavo.

 "4000 hungry children leave us per hour from starvation
  while billions are spent on bombs creating death showers"