[Twisted-web] guarded example using external login form file
therve at free.fr
Thu Apr 28 09:45:48 MDT 2005
Quoting Pedro Sanchez <psanchez at nortel.com>:
> 1) I don't understand what the third parameters(noLogout and
> resc.logout) in these return statements do:
> def requestAvatar(self, avatarId, mind, *interfaces):
> return (inevow.IResource, resc, noLogout)
> return (inevow.IResource, resc, resc.logout)
> Can you give me a hint?
It's the method called when you access the guard.LOGOUT_AVATAR url. So
"noLogout" when you're Anonymous (you can't log out when you're
resc.logout which is a specific method.
> 2) Now I'm trying to move the LoggedIn class into an external
> "welcome.html" file. I get this error (files follow my signature):
> exceptions.AttributeError: 'NoneType' object has no attribute 'load'
docfactory != docFactory
More information about the Twisted-web