コード例 #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")