PVSForPlone2

PVSForPlone2 v0.1.3 alpha Hotfix 2006-04-23 1.0

This Hotfix applies to PVSForPlone2 v0.1.3 alpha and fixes a bug found in the "all versions" tab which improperly sets the "Created by" and "Date" fields of new versions that are created.

Release Notes

When a new version is created, the owner role and date fields are not properly set to the owner who created the new version and the date the new version is created.

From the image in the example above, a new version was created on April 25, 2006 by the user "mtakahashi".

The "Created by" field should display 'mtakahashi' and the date should display April 25, 2006. Instead, the original owner and date are still retained as seen in the "Created by" and "Date" fields.

This hotfix sets two additional fields in the new version object that is being created within the function createVersion() located in PVSTool.py:

# Update the new versions creator to the current user who has created
# this new version
new_context.setCreators(name)

# Set the creation date on the new version
new_context.setCreationDate(DateTime())

Additionally, I have modified the file manage_versions.pt so that the "all versions" tab displays the user name instead of the user ID in the same manner Plone uses for the byline. Click here for an example.

Date released: April 23, 2006
Compatible with: Plone 2.1.x
File Download: PVSForPlone2-0.1.3-alpha-Hotfix.tar (30 KB)