[Twisted-web] Guard and service
mailinglists at smartology.nl
Tue Jun 6 09:26:57 CDT 2006
I want to protect the root of my nevow Site with guard, but can't get it
My nevow Site is passed the service like in:
s = myService()
ms = service.MultiService()
I used the nevow guarded example for the code and registered the
realm = MyRealm()
porta = portal.Portal(realm)
myChecker = checkers.InMemoryUsernamePasswordDatabaseDontUse()
res = guard.SessionWrapper(porta, mindFactory=Mind)
res.service = service
components.registerAdapter(createResource, ImyService, inevow.IResource)
When I browse to the root page (http://localhost:8000), FireFox gives me
> The page isn't redirecting properly
> Firefox has detected that the server is redirecting the request for
> this address in a way that will never complete.
> * This problem can sometimes be caused by disabling or refusing to
> accept cookies.
There are cookies, so that doesn't seem to be the problem.
How can I solve this problem?
More information about the Twisted-web