Skip to main content

Plone utility to change relative or absolute path inside text to UID (and resolveuid)

Project description

Introduction

A Plone utility and view to help you to convert your paths inside site contents.

You can use the new provided utility:

>>> utility = getUtility(IUIDConverted)
Do something with the utility methods

Also, a Plone view is provided to automatically fix paths inside documents.

Simply call:

http://yourplone/folder/subfolder/@@convertUID

Then you can fix all contents in the “subfolder” tree.

How is not going well on Kupu feature?

The Kupu project has inside a similar feature for fixing Kupu (and TinyMCE) created links.

However this not always works, for example, if for some reason you contents have inside absolute paths like this:

/plonesite/foo/foo

Also: Kupu is less used in Plone world and even if you have it in your Plone environment, you must have it installed and selected as your WYSIWYG editor to use its converting features.

TODO

  • Internationalization of the UI

  • Plone fixing form needs some love right now

  • Much more test

  • Beeing a complete alternative to Kupu migration tool

  • Also give the “UID to Path” feature

  • Relative path conversion is not working for all possibiel path (i.e: ‘../foo/a-document’)

  • Transformation will not works if linking method/traverse of target object (i.e: “foo/image-id/image_thumb”)

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.1.0a (2010-12-22)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.pathtouid-0.1.0a.tar.gz (14.8 kB view details)

Uploaded Source

File details

Details for the file collective.pathtouid-0.1.0a.tar.gz.

File metadata

File hashes

Hashes for collective.pathtouid-0.1.0a.tar.gz
Algorithm Hash digest
SHA256 e467ec683d34fdee86ef396f2c532971135ba41cac7e7a297b89fd25b2fd2982
MD5 7e9a379c3542d0922480d0e393c33871
BLAKE2b-256 1ec83d1a359d8b075631a10bb1d9c4247224120e5aebf4186bef6750c316a625

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page