Metadata-Version: 1.1
Name: collective.scriptedredirect
Version: 1.0
Summary: Python scripted redirects in Plone CMS
Home-page: https://github.com/collective/collective.scriptedredirect
Author: Mikko Ohtamaa
Author-email: mikko@opensourcehacker.com
License: gpl
Description: .. contents::
        
        Introduction
        --------------
        
        ``collective.scriptedredirect`` allows you to write HTTP 302 Moved Temporary and HTTP 301 Moved Permanently
        logic for your `Plone CMS <http://plone.org>`_ site with Python scripting.
        
        Benefits
        ---------
        
        * The redirect logic is front-end web server independent (no need to learn Apache, Varnish or Nginx)
        
        * Python allows to write more complex logic for redirects easier (no regular expressions!)
        
        * Python scripts in Plone have access to more complete state information
          (user logged in status, permissions, etc.)
        
        Usage
        -----
        
        Add add-on in *buildout.cfg*::
        
            eggs =
                ...
                collective.scriptedredirect
        
        Run buildout.
        
        Install *Scripted redirects in Python* in Site Setup > Add-ons.
        
        Edit *redirect_handler* in Zope Management Interface.
        
        .. image :: http://cloud.github.com/downloads/collective/collective.scriptedredirect/Screen%20Shot%202012-09-25%20at%201.28.18%20AM.png
        
        In the case of accident use ``?no_redirect`` HTTP query parameter to override
        the redirecter and fix your site.
        
        Scripting
        --------------
        
        The redirect script takes input parameters
        
        * *url*: full URL of the request
        
        * *host*: www.yoursite.com
        
        * *port*: 80, 443 or custom Zope port
        
        * *path*: the path part of URL
        
        
        
        Internals
        -----------
        
        ``collective.scriptedredirect`` hooks itself to Zope's pre-traversal hook and is
        triggered before the request traverses into your Plone site in Zope application server.
        
        Author
        ------
        
        `Mikko Ohtamaa <http://opensourcehacker.com>`_
        Changelog
        =========
        
        1.0 (2013-02-05)
        ----------------
        
        - Initial development [miohtama]
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
