Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.updatelinksoncopy

How to install collective.updatelinksoncopy

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.updatelinksoncopy
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
1.0b5 Available View build log
Windows (64-bit)
1.0 Available View build log
1.0b5 Available View build log
Mac OS X (10.5+)
1.0 Available View build log
1.0b5 Available View build log
Linux (32-bit)
1.0 Available View build log
1.0b5 Available View build log
Linux (64-bit)
1.0 Available View build log
1.0b5 Available View build log
 
Author
License
GPL
Lastest release
version 1.0 on Aug 11th, 2011

Introduction

A drop in package for Plone that improves the copy and paste operation of folder structures. Reference fields (e.g. relatedItems) and UID inline links in text fields are rewritten if they reference any of the content within the folder structure being copied so that they now link to the copied content.

Development

the buildout in this package will create a test stub which can be run with:

./bin/test -s collective.updatelinksoncopy

See the doctests for more information of what this package does.

Edit buildout.cfg to point to either buildouts/buildout-plone3.cfg or buildouts/buildout-plone4.cfg. Don't forget to rerun bootstrap.py with python2.4 or python2.6 for plone 3 and plone 4 respectively.

Credits

Initial development by Matt Halstead sponsored by Innovationz.

Addition of reference field handling by Matt Halstead sponsored by Informaat.

Installation

This package requires Plone 3.x or later (tested on 3.3.x).

If you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can add collective.updatelinksoncopy to the list of eggs to install, e.g.:

[buildout]
...
eggs =
    ...
    collective.updatelinksoncopy

(If you are working with a version of Plone < 3.3 then you'll also need to install a ZCML slug.)

Changelog

1.0 (2011-08-10)
  • Gracefully handle unusual reference fields and missing uids.
  • Adjust tests to run with GenericSetup 1.6.3+
1.0b5 (2010-04-05)
  • edgecase bugfix
1.0b4 (2010-03-16)
  • provide buildout for testing in plone 4 as well as 3
  • clean up use of field accessor/mutator in tests
  • update tests to work with plone 4
1.0b3 (2010-03-16)
1.0b2 (2010-03-12)
  • Update reference fields which point to objects within the copy tree. For example, the default relatedItems field on Archetype Document, or custom reference fields.
1.0b1 (2010-02-05)
  • Initial release [Matt Halstead]

Subscribe to package updates

Last updated Aug 11th, 2011

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.