Manipulating objects

Introduction

Manipulating objects depends on whether they are based on the Archetypes subsystem or on the Dexterity subsystem.

For more information, consult the manual of the relevant subsystem:

Reindexing modified objects

After modifying the object, you need to reindex it in the portal_catalog to update the search and listing information.

Cataloging has a quirk regarding the modified metadata: when calling reindexObject on an object, the value for modified in portal_catalog will be set to the time of the reindex, regardless of the value of the modified property of the object.

In order to store the correct value you can do an extra reindex of the object with the modified index as parameter.

First do a normal reindexObject, then call it with the modified index explicitly:

object.reindexObject()
object.reindexObject(idxs=['modified'])

For more information, see ** How to update this document.

Table Of Contents

About Plone

This is documentation for Plone®. Plone is a popular, open source, content management system written in Python programming language.




Edit this document

The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.

  1. Go to Manipulating objects on GitHub.
  2. Press Fork and edit this file button.
  3. Edit file contents using GitHub's text editor in your web browserm
  4. Fill in the Commit message text box at the end of the page telling why you did the changes. Press Propose file change button next to it when done.
  5. On Send a pull request page you don't need to fill in text anymore. Just press Send pull request button.
  6. Your changes are now queued for review under project's Pull requests tab on Github.

For basic information about updating this manual and Sphinx format please see Writing and updating the manual guide.