예제 #1
0
 def unauthorized(self, id, request):
     """See IAuthentication."""
     a = ILoginPassword(request)
     # TODO maybe configure the realm from zconfigure.
     a.needLogin(realm="launchpad")
예제 #2
0
 def unauthorized(self, id, request):
     if id is None or id is self.__defaultid:
         a = ILoginPassword(request)
         a.needLogin(realm="Zope")
예제 #3
0
 def unauthorized(self, id, request):
     """See IAuthentication."""
     a = ILoginPassword(request)
     # TODO maybe configure the realm from zconfigure.
     a.needLogin(realm="launchpad")