You are here: Home / LBN / Up2date / Plone and Zope / BastionLinux 13 / plone.app.redirector-1.2.1-1.lbn13.noarch

plone.app.redirector-1.2.1-1.lbn13.noarch

Package Attributes
RPM  plone.app.redirector-1.2.1-1.lbn13.noarch.rpm Architecture  noarch Size  96236 Created  2017/08/04 11:05:51 UTC
Package Specification
Summary redirection tool
Group Application/Internet
License GPL version 2
Home Page http://pypi.python.org/pypi/plone.app.redirector
Description

============

Bring dead links back to life! plone.app.redirector knows where your content used to be and can bring you to its new location when content moves.

This component expects you to register storage.RedirectionStorage as a local utility providing IRedirectionStorage (CMFPlone does this). Once that's done, the subscribers in subscribers.py will listen for object moved and object deleted events.

When an object is moved (renamed or cut/pasted into a different location), the redirection storage will remember the old path. It is smart enough to deal with transitive references and circular references.

When an object is deleted, all references to it are deleted as well.

The view in browser.py contains methods (used in Plone's default_error_message.pt when it gets a NotFound error) that do the following:

  • attempt to redirect from the assumed intended path to the new path of an object, if the redirection storage holds a reference from the old path.
  • if not, look for the first valid parent of the assumed intended path, and present it as an option to the user
  • further, use the last id of the assumed intended path and attempt to search for objects in the catalog that contain this, presenting the options to the user
Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
/bin/sh  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
plone.app.redirector
Obsoletes
plone.app.redirector-egginfo

Document Actions