Free Software download



iwrejectanonymous 101

Download ()
  • Licence:
  • OS:
  • Homepage:
  • Date Added: 10/10/2010
  • File size:
  • Downloads: 63

iwrejectanonymous 101

 Bookmark

iwrejectanonymous 101 Description

 
iw.rejectanonymous is made to reject unconditionally anonymous users from a Plone site; they should get redirected by Plone to login form. The basic use case is an extranet, where all visitors must be authenticated.How to use iw.rejectanonymous?By default an anonymous user can browse portal: >>> portal_url = self.portal.absolute_url() >>> browser.open(portal_url) >>> browser.url == portal_url True >>> browser.headers['status'] '200 OK'We mark the portal with IPrivateSite; this can be achieved by code or in the ZMI using "Interfaces" tab on the portal object. Now Anonymous will get Unauthorized exception. In a plone site this should results in a redirect to login form. >>> from zope.interface import alsoProvides >>> from iw.rejectanonymous import IPrivateSite >>> alsoProvides(self.portal, IPr  . you can free download iwrejectanonymous 101 now.
iwrejectanonymous 101 Screenshot

iwrejectanonymous 101 useful links

iwrejectanonymous 101

 Related Software

iwrejectanonymous 101

 Keyword