<?xml version="1.0" encoding="iso-8859-1"?>
<module name="Ft.Server.Server.Drivers.Psyco" file="/work/a/ports/textproc/py-4suite/work/4Suite-1.0b1/build/lib.freebsd-7.1-RELEASE-i386-2.4/Ft/Server/Server/Drivers/Psyco/__init__.py">
  <modification-date>2005-02-27 04:17:35</modification-date>
  <abstract/>
  <description/>
  <classes>
    <class name="PsycoDriver" public="yes">
      <bases>
      </bases>
      <abstract>Store information in a Postgres Database using PsycoPG</abstract>
      <description/>
      <method-resolution-order>
        <base name="PsycoDriver" module="Ft.Server.Server.Drivers.Psyco"/>
      </method-resolution-order>
      <methods documented="yes" class="PsycoDriver" module="Ft.Server.Server.Drivers.Psyco" inherited="no">
        <method public="no" name="__init__" id="PsycoDriver-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="dbName"/>
            <arg name="host"/>
            <arg name="port"/>
            <arg name="user"/>
            <arg name="passwd"/>
          </arguments>
        </method>
        <method public="yes" name="commit" id="PsycoDriver-commit">
          <abstract>Make it so!</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="yes" name="createFile" id="PsycoDriver-createFile">
          <abstract>When creating a resource, 
store the content</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="path"/>
            <arg name="typ"/>
            <arg name="content"/>
          </arguments>
        </method>
        <method public="yes" name="deleteFile" id="PsycoDriver-deleteFile">
          <abstract>Delete an object</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="path"/>
            <arg name="typ"/>
          </arguments>
        </method>
        <method public="yes" name="fetchFile" id="PsycoDriver-fetchFile">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="path"/>
            <arg name="typ"/>
          </arguments>
        </method>
        <method public="yes" name="getSystemModel" id="PsycoDriver-getSystemModel">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="yes" name="getUserModel" id="PsycoDriver-getUserModel">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="yes" name="hasFile" id="PsycoDriver-hasFile">
          <abstract>See if we have any meta information about this resource</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="path"/>
            <arg name="typ"/>
          </arguments>
        </method>
        <method public="yes" name="maintain" id="PsycoDriver-maintain">
          <abstract>Perform any maintenance on the db</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="yes" name="rollback" id="PsycoDriver-rollback">
          <abstract>Undo it</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
        </method>
        <method public="yes" name="updateFile" id="PsycoDriver-updateFile">
          <abstract>Update only the content about this resource</abstract>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="path"/>
            <arg name="typ"/>
            <arg name="content"/>
          </arguments>
        </method>
      </methods>
    </class>
  </classes>
  <functions>
    <function public="yes" name="Begin" id="Begin">
      <abstract>Begin a new transaction.  Every driver must support this interface.
The properties keyword arguments are passed from the config file
(or where ever) to the driver.  The Begin file is responsible
for doing what ever is needed to validate these arguements</abstract>
      <description/>
      <arguments>
        <var-keywords name="properties"/>
      </arguments>
    </function>
    <function public="yes" name="BuildConnectString" id="BuildConnectString">
      <abstract/>
      <description/>
      <arguments>
        <arg name="dbname"/>
        <arg name="host"/>
        <arg name="port"/>
        <arg name="user"/>
        <arg name="passwd"/>
      </arguments>
    </function>
    <function public="yes" name="DbExists" id="DbExists">
      <abstract/>
      <description/>
      <arguments>
        <arg name="properties"/>
      </arguments>
    </function>
    <function public="yes" name="Destroy" id="Destroy">
      <abstract>Completly dismantle the repo</abstract>
      <description/>
      <arguments>
        <arg name="properties"/>
        <arg default="0" name="tryOnly"/>
      </arguments>
    </function>
    <function public="yes" name="Exists" id="Exists">
      <abstract>See if this repo exists.  The return value for this is three state.
1.  Everything is present
0.  Some things are there
-1  Nothing is there.</abstract>
      <description/>
      <arguments>
        <arg name="properties"/>
      </arguments>
    </function>
    <function public="yes" name="Initialize" id="Initialize">
      <abstract>Initialize a new copy of the repo.  This is a prerequiste to a full
4ss_manager init.  The adapter will take care of calling our other
interfaces (createContainer, createUser, etc) with all of the
information about the rest of the init stuff to do</abstract>
      <description/>
      <arguments>
        <arg name="properties"/>
      </arguments>
    </function>
    <function public="yes" name="InitializeModule" id="InitializeModule">
      <abstract>Post-import hook to initialize module's runtime variables that are not
required at import time, but will be needed before the module-level
functions are called.</abstract>
      <description/>
      <arguments>
      </arguments>
    </function>
    <function public="yes" name="Maintain" id="Maintain">
      <abstract>Perform any maintenance on the db</abstract>
      <description/>
      <arguments>
        <arg name="properties"/>
      </arguments>
    </function>
  </functions>
  <fields>
    <field public="yes" name="BLOB_CHUNK_LENGTH" id="BLOB_CHUNK_LENGTH">
      <value>100000</value>
    </field>
    <field public="yes" name="NAME" id="NAME">
      <value>'Psyco'</value>
    </field>
    <field public="yes" name="SYSTEM_MODEL_NAME" id="SYSTEM_MODEL_NAME">
      <value>'system'</value>
    </field>
    <field public="yes" name="USER_MODEL_NAME" id="USER_MODEL_NAME">
      <value>'user'</value>
    </field>
  </fields>
</module>
