Skip to content

Find relative links in a Plone site and replace them with 'resolveuid' ones.

Notifications You must be signed in to change notification settings

Arkusm/arkusm.uidfixer.dx

 
 

Repository files navigation

arkusm.uidfixer.dx

This product is based on pareto.uidfixer. It has been adapted to work with dexterity content types. Use it to find relative links in a Plone site and replace them with 'resolveuid' ones. This product finds all links that point to items within the site, or links that contain 'resolveuid' as part of the URL, then uses traversal and the redirection tool (portal_redirection) to get to the object linked to. If that fails, the link is kept in-tact and is reported, if an object is found, the link is converted to a proper 'resolveuid' one and saved.

Prerequisites

  • Plone 4 (you can use minimalplone4mrbob for testing)
  • dexterity based content-types (plone.app.contenttypes)

Features

  • Find relative links in a dexterity based Plone site and replace them with 'resolveuid' ones.
  • Also repairs absolute paths starting with http://WWW.MY-DOMAIN.ORG or paths starting with / (more information in browser/uidfixer.py).

Documentation

Full documentation for end users can be found in the "docs" folder.

Installation

The product has not yet been released (and may never be released). Install arkusm.uidfixer.dx as development package by adding it to your buildout:

[buildout]

...
extensions = mr.developer

eggs =
        arkusm.uidfixer.dx

auto-checkout =
        arkusm.uidfixer.dx

test-eggs =
        arkusm.uidfixer.dx [test]


[sources]
arkusm.uidfixer.dx = git [email protected]:Arkusm/arkusm.uidfixer.dx

and then running bin/buildout

or

add the following files to your own package

  • tools.py
  • browser/uidfixer-results.pt
  • browser/uidfixer.pt
  • browser/uidfixer.py

and add the following entry to you browser/configure.zcml:

<browser:page
        for="*"
        name="uidfixer"
        class=".uidfixer.UIDFixerView"
        permission="zope2.ViewManagementScreens" />

Contribute

Support

https://github.com/Arkusm/arkusm.uidfixer.dx/issues

About

Find relative links in a Plone site and replace them with 'resolveuid' ones.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 89.5%
  • RobotFramework 8.8%
  • Shell 1.7%