You are not logged in Log in Join
You are here: Home » Members » Tres Seaver's Zope.org Site » Dump Through-the-Web Code to the Filesystem » Help » FSDump Mappings Help

Log in
Name

Password

 

FSDump Mappings Help

Mapping TTW Code to the Filesystem

General Mapping

  • Create the most "natural" filesystem analogue for each TTW item: Folders -> directories, DTML Methods/Documents -> DTML files, PythonMethods -> Python modules.
  • Trap non-inline properties in a companion file, with a .properties suffix. Store one property per line, using name:type=value syntax.
  • Preserve enough metadata to be able to recreate the TTW object, preferably by using its web interface. This rule is the chief differentiator (in concept) from pickling; we don't save state which cannot be set by a TTW manager.

Specific Mappings

Folder

  • Recursively store contained items into the folder's directory.
  • Store a list of the dumped items in an ".objects" file, one line per item, using the format, name:meta_type.

Python Method

  • Create a module containing a single top-level function definition, using the name, argument list, and body.

Python Script

  • Create a module containing a single top-level function definition, using the "read" format (bindings in comments at the top).

File / Image

  • Save the file contents themselves in binary format using the item's id.

SQL Method

  • Inject the parameter list inline into the body, with a leading blank line.

ZCatalog

  • Store the paths of the catalogued objects in a ".catalog" file, one line per item.
  • Store the index definititions in a ".indexes" file, one line per index, using the format, name:meta_type.
  • Store the schema in a ".metadata" file, one line per field name.

ZClass

  • Map to a directory.
  • Store "basic" tab values in .properties
  • Store icon in .icon
  • Store propertysheets in propertysheets/common.
  • Store method tab objects (includin nested ZClasses) in propertysheets/methods.

Common Instance Property Sheet (ZClass property sheet)

  • Store properties as name:type=value in file of same name.

Zope Permission

  • Store values in "*.properties".

Zope Factory

  • Store values in "*.properties".

Wizard

  • Map to a directory.
  • Store properties in .properties.
  • Store pages.

WizardPage

  • Store text in "*.wizardpage'.
  • Store properties in *.properties.