<?xml version="1.0" encoding="iso-8859-1"?>
<module name="Ft.Server.Common.Install.Serialize" file="/work/a/ports/textproc/py-4suite/work/4Suite-1.0b1/build/lib.freebsd-8.0-RELEASE-p2-i386-2.4/Ft/Server/Common/Install/Serialize.py">
  <modification-date>2005-03-19 09:28:44</modification-date>
  <abstract>Serialization and Deserialization of setup files.</abstract>
  <description>Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/</description>
  <functions>
    <function public="yes" name="CopyDir" id="CopyDir">
      <abstract>For compatibility, same as CopyDir, but returns a complete
list, rather than a generator.</abstract>
      <description/>
      <arguments>
        <arg name="path"/>
        <arg name="src"/>
        <arg default="{}" name="fileMap"/>
        <arg default="[]" name="resources"/>
      </arguments>
    </function>
    <function public="yes" name="CopyDirGen" id="CopyDirGen">
      <abstract>Returns a generator of objects representing resources to add to the
repository. The resources mirror a current snapshot of a local
file system directory.</abstract>
      <description>path = destination repo path (an existing Container)
src = file system source path (a directory)
      must be a valid absolute URI if srcIsUri is True (default)
      must be a local path if srcIsUri is False
fileMap = mapping of filename extensions to resource classes

A tree like /root/dir1/dir2 will be returned as a list like
['/root', '/root/dir1', '/root/dir1/dir2']. Files in each
directory will be listed immediately following that directory.
So files in dir1 will come before the entry for dir2.
Directories are processed breadth-first.

path = destination repo path (an existing Container)
src = file system source path (a directory)
fileMap = mapping of filename extensions to resource classes
resources = list of resource objects to append to</description>
      <arguments>
        <arg name="path"/>
        <arg name="src"/>
        <arg default="{}" name="fileMap"/>
        <arg default="[]" name="resources"/>
      </arguments>
    </function>
    <function public="yes" name="Deserialize" id="Deserialize">
      <abstract>Deserialize a stream that references a setup file by URI</abstract>
      <description/>
      <arguments>
        <arg name="stream"/>
        <arg default="''" name="refUri"/>
      </arguments>
    </function>
    <function public="yes" name="LoadAcl" id="LoadAcl">
      <abstract/>
      <description/>
      <arguments>
        <arg name="node"/>
      </arguments>
    </function>
    <function public="yes" name="MirrorDir" id="MirrorDir">
      <abstract>For compatibility, same as MirrorDirGen, but returns a complete
list, rather than a generator.</abstract>
      <description/>
      <arguments>
        <arg name="path"/>
        <arg name="src"/>
        <arg name="fileMap"/>
        <arg default="True" name="srcIsUri"/>
      </arguments>
    </function>
    <function public="yes" name="MirrorDirGen" id="MirrorDirGen">
      <abstract>Wrapper for CopyDirGen().</abstract>
      <description>It optionally accepts a 'file' URI for src, and
verifies that src refers to a directory. It does not
accept an initial list of resources to append to.</description>
      <arguments>
        <arg name="path"/>
        <arg name="src"/>
        <arg name="fileMap"/>
        <arg default="True" name="srcIsUri"/>
      </arguments>
    </function>
    <function public="yes" name="Serialize" id="Serialize">
      <abstract>Serialize a product list into a string</abstract>
      <description/>
      <arguments>
        <arg name="product"/>
        <arg default="''" name="refUri"/>
      </arguments>
    </function>
    <function public="yes" name="SerializeAclAndOwner" id="SerializeAclAndOwner">
      <abstract/>
      <description/>
      <arguments>
        <arg name="res"/>
      </arguments>
    </function>
    <function public="yes" name="ValidateAttribute" id="ValidateAttribute">
      <abstract/>
      <description/>
      <arguments>
        <arg name="node"/>
        <arg name="ns"/>
        <arg name="ln"/>
      </arguments>
    </function>
  </functions>
  <fields>
    <field public="yes" name="DC" id="DC">
      <value>'http://purl.org/dc/elements/1.1/'</value>
    </field>
    <field public="yes" name="EMPTY_NAMESPACE" id="EMPTY_NAMESPACE">
      <value>None</value>
    </field>
    <field public="yes" name="IMT_MAP" id="IMT_MAP">
      <value>{'.gif': 'image/gif', '.htm': 'text/html', '.html': 'text/html', '.jpeg': 'image/jpeg', '.jpg': 'image/jpeg', '.png': 'image/png', '.rdf': 'text/xml', '.svg': 'image/svg', '.xhtml': 'text/html', '.xml': 'text/xml', ...}</value>
    </field>
    <field public="yes" name="PRODUCT_NAMESPACE" id="PRODUCT_NAMESPACE">
      <value>'http://xmlns.4suite.org/reserved#product'</value>
    </field>
    <field public="yes" name="ext" id="ext">
      <value>'.htm'</value>
    </field>
    <field public="yes" name="g_defaultFileMap" id="g_defaultFileMap">
      <value>{'.daml': (None, None, &lt;class Ft.Server.Common.Install.InstallUtil.RdfDocument&gt;), '.gif': (None, 'image/gif', &lt;class Ft.Server.Common.Install.InstallUtil.RawFile&gt;), '.htm': (None, 'text/html', &lt;class Ft.Server.Common.Install.InstallUtil.RawFile&gt;), '.html': (None, 'text/html', &lt;class Ft.Server.Common.Install.InstallUtil.RawFile&gt;), '.jpeg': (None, 'image/jpeg', &lt;class Ft.Server.Common.Install.InstallUtil.RawFile&gt;), '.jpg': (None, 'image/jpeg', &lt;class Ft.Server.Common.Install.InstallUtil.RawFile&gt;), '.owl': (None, None, &lt;class Ft.Server.Common.Install.InstallUtil.RdfDocument&gt;), '.png': (None, 'image/png', &lt;class Ft.Server.Common.Install.InstallUtil.RawFile&gt;), '.rdf': (None, None, &lt;class Ft.Server.Common.Install.InstallUtil.RdfDocument&gt;), '.rdfs': (None, None, &lt;class Ft.Server.Common.Install.InstallUtil.RdfDocument&gt;), ...}</value>
    </field>
    <field public="yes" name="g_typeMap" id="g_typeMap">
      <value>{'Command': &lt;class Ft.Server.Common.Install.InstallUtil.Command&gt;, 'RdfDocument': &lt;class Ft.Server.Common.Install.InstallUtil.RdfDocument&gt;, 'SchematronDocument': &lt;class Ft.Server.Common.Install.InstallUtil.SchematronDocument&gt;, 'Server': &lt;class Ft.Server.Common.Install.InstallUtil.Server&gt;, 'XPathDocumentDefinition': &lt;class Ft.Server.Common.Install.InstallUtil.XPathDocumentDefinition&gt;, 'XmlDocument': &lt;class Ft.Server.Common.Install.InstallUtil.XmlDocument&gt;, 'XsltDocument': &lt;class Ft.Server.Common.Install.InstallUtil.XsltDocument&gt;, 'XsltDocumentDefinition': &lt;class Ft.Server.Common.Install.InstallUtil.XsltDocumentDefinition&gt;}</value>
    </field>
    <field public="yes" name="g_xmldocMapping" id="g_xmldocMapping">
      <value>{4: 'XmlDocument', 5: 'XsltDocument', 6: 'SchematronDocument', 9: 'XPathDocumentDefinition', 11: 'XsltDocumentDefinition', 12: 'RdfDocument', 14: 'Command', 15: 'Server'}</value>
    </field>
    <field public="yes" name="generators" id="generators">
      <value>_Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 4096)</value>
    </field>
    <field public="yes" name="imt" id="imt">
      <value>'text/html'</value>
    </field>
  </fields>
</module>
