2005-04-02 06:30:23

4Suite repository driver

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Repository XML Container object. createContainer/getContent/setContent/_getChildren are overidden to use low level api's to implement containment. Should catch Exceptions more ferverently.

NOTE self._driver is the FtssDriver instance self._driver._driver is the Data store driver instance

Returns an XML representation of the specified container (path is a PathImp) Uses fetchChildren (implemented by the data store) to retrieve the names of the children and generates a repository container XML document.

Creates the specified container, if createParents is true then all its parents along the path are created (if they dont exist). If actualContent is given NOT_SUPPORTED Exception is raised Needs to mimick (mostly) and override FtssDriver.createResource in order to call _createContainer

The FtssDriver wraps the lowest-level repository database driver, providing functions commonly used by higher-level APIs.

Another very special case that will destroy a '/'. It cannot be called if they are logged in

A very special-case function. This can be called without being logged in

Get the resource type from the metadata. path is a Path object

Another very special case that will create a new '/'. It cannot be called if they are logged in

[]
2
'/ftss:MetaData/ftss:Reference'
'"http://schemas.4suite.org/4ss#urireferencefile.location"'
'$uri'
'R'

paths is a sequence of unicode path names

900

The Document interface represents the entire XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

<Document at 0x89faeec: 1 children>
'http://xmlns.4suite.org/reserved'

The Document interface represents the entire XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

<Document at 0x89facec: 1 children>
'L'
'R'
'?'
'http://xmlns.4suite.org/reserved'
'<xupdate:modifications\n version="1.0"\n xmlns:x...ta">%s</xupdate:append>\n</xupdate:modifications>\n'
'<xupdate:modifications\n version="1.0"\n xmlns:x...te">%s</xupdate:update>\n</xupdate:modifications>\n'

The Document interface represents the entire XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

<Document at 0x89faeac: 1 children>
'<xupdate:modifications\n version="1.0"\n xmlns:x...ze">%s</xupdate:update>\n</xupdate:modifications>\n'
u'http://www.w3.org/1999/xlink'
u'http://www.w3.org/1999/XSL/Transform'