On Wednesday 19 December 2001 01:19 pm, Tavis Rudd wrote:
> On Wednesday 19 December 2001 12:00, Chuck Esterbrook wrote:
> > To set this up I think all that's required is that awake() have
> > this early on:
> >     self.writeContent = self.__class__.writeContent
>
> Why do you have to do this bit?

So that you get back to "normal". My original idea was to put that in 
sleep() to restore the page back to normal, but then if you experienced 
an exception, the restoration wouldn't occur.

I suppose you could put this at the end of an if ladder if you liked:

        if not self.user:
                self.writeContent = self.writeSignIn
        elif self.permDenied():
                self.writeContent = self.writePermDenied
        else:
                self.writeContent = self.__class__.writeContent
        
-Chuck

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to