Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF
Re: [Zope-PTK] morphing identity
 

Index | Next | Previous | View Flat


mike at digicool

Feb 14, 2000, 3:00 PM


Views: 103
Permalink
Re: [Zope-PTK] morphing identity [In reply to]

On Mon, 14 Feb 2000, Timothy Wilson wrote:

> Hitting shift-reload did fix the problem, but I don't see that behavior
> when I'm accessing my regular, non-PTK Zope site.

This convinces me that you do indeed have some sort of cache between
your client boxes and the server, which is doing some really awful things.
Perhaps the difference in behaviour compared to your non-PTK site is due
to the fact that the PTK doesn't use HTTP-based authorization and your
vanilla Zope site probably does. I'm guessing that your cache uses this
as a part of the key it uses to find cached results.

Here's a quick-and-dirty fix (read: hack) to try; in
PTKBase/MemberFolder.py there are two lines which raise 'Login
Required'. They look like this:

raise 'Login Required', self.loginForm(self, request)

Replace this with "raise 'Unauthorized'". This will cause the
standard browser authentication window to pop up instead of redirecting
you to a login form. You should be able to log in using HTTP-auth and
avoid this caching nastiness.

I wouldn't advise doing this on a production site. I'd like to find a
better solution. Is there any way to explicitly say, "Do not cache this
page"? Or, preferably, "This page is user-dependant" or something
similar?

--
Mike Pelletier email: mike [at] digicool
Mild mannered software developer icq: 7127228
by day, super villain by night. phone: 519-884-2434

Subject User Time
[Zope-PTK] morphing identity wilson at visi Feb 14, 2000, 10:54 AM
    Re: [Zope-PTK] morphing identity kid at kendermedia Feb 14, 2000, 11:48 AM
        Re: [Zope-PTK] morphing identity wilson at visi Feb 14, 2000, 12:08 PM
    Re: [Zope-PTK] morphing identity kid at kendermedia Feb 14, 2000, 1:02 PM
    Re: [Zope-PTK] morphing identity mike at digicool Feb 14, 2000, 3:00 PM
    Re: [Zope-PTK] morphing identity wilson at visi Feb 14, 2000, 3:16 PM
    Re: [Zope-PTK] morphing identity mike at digicool Feb 14, 2000, 3:27 PM
    RE: [Zope-PTK] morphing identity mj at digicool Feb 15, 2000, 3:23 AM
    Re: [Zope-PTK] morphing identity wilson at visi Feb 15, 2000, 12:13 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.