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