Ticket #1294 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Directory config import shouldn't erase content

Reported by: fguillaume Assigned to: div
Priority: P1 Milestone: CPS 3.4.1
Component: CPSDirectory Version: TRUNK
Severity: normal Keywords:
Cc:

Description

Even when importing a base profile, directory content shouldn't be erased.

_purgeObjects of DirectoryToolXMLAdapter should be subclassed to not erased directories with content. An interface IContentishDirectory should be used to distinguish them.

Change History

01/20/06 15:32:00 changed by ogrisel

A somewhat related problem is the current inability of extension profiles to erase an existing directory to transtype it.

Suppose I want to build an extension profile that replaces the members directory with a new meta directory with a bunch of backings for instance. At import time, the importer will try to reconfigure the existing members ZODBDirectory of the base profile with the configuration for the StackingDirectory? as defined in the extension profile.

Maybe the importers should check the meta_types and purge the existing objects if the meta types do not match.

This transtype feature would be interestingly upgraded once we have directory content ex/importers that could dump the directory content on a temporary file, transtype and reconfigure the directory and reupload the content back to the new dir.

Otherwise, we should make it possible to explicitely purge the directory tool from an extension profile (with a 'purge="True"' attribute for instance).

If you believe both problems are not related enough, tell me and I'll open a dedicated ticket.

01/20/06 15:32:26 changed by ogrisel

s/Stacking/Meta/g

02/08/06 13:26:04 changed by ebarroca

  • owner changed from fguillaume to div.

02/08/06 18:48:18 changed by div

  • version changed from 3.3.8 to TRUNK.

02/09/06 15:06:25 changed by div

The directory content is not removed anymore on profile import: [32681]. For now, only the ZODBDirectory benefit from this.

TODO: expand the behaviour to other directory types.

02/15/06 17:38:28 changed by ebarroca

  • milestone changed from CPS 3.4.0 to CPS 3.4.1.

02/16/06 15:53:29 changed by div

Are there other directories which can be called Contentish (besides ZODBDirectory)?

Also, about the transtyping, this will be taken care in #1378

02/17/06 19:46:05 changed by fguillaume

Only ZODBDirectory is Contentish, all other directories store data in external systems that don't need to be backed up.

02/17/06 19:51:04 changed by div

  • status changed from new to closed.
  • resolution set to fixed.

Then this could be closed