4Suite API Documentation

Module Ft.Server.Client.Core.ContainerClient

4Suite: an open-source platform for XML and RDF processing.
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Globals:

Classes

class ContainerClient(Ft.Server.Client.Core.XmlDocumentClient.XmlDocumentClient)
A repository container

Methods

__contains__ = has_key(self, key)
User Dict interface
__getitem__(self, i)
Implements list access for containers and repositories
__getslice__(self, i, j)
Implements list slice access for containers and repositories
__len__(self)
Overides the length operator
createContainer(self, path, createParents=0, docDef=None, actualContent=None)
Creates the specified container, if createParents is true then all its parents along the path are created (if they dont exist).
createDocument(self, path, src, docDef=None, imt='text/xml', forcedType=None)
Creates a document with the given document definition name, path, type, and source. if the type is not specified it will attempt to infer the type based on IMT and the src. If path is an empty string, then a UUID will be generated for the XML, XSLT, and Schematron documents. If the document definition specifies a full text index, then the content is indexed
createGroup(self, name, docDef=None)
Creates a new group. You need write access to the system group container
createRawFile(self, path, imt, src)
Creates a raw file resource, using the specified, path, internet media type, and source string.
createUriReferenceFile(self, path, imt, srcUri)
Create an URI Reference file. An URI Reference file is a reference to a URI
createUser(self, name, passHash, docDef=None)
Create a new user. You must have write access to te system group container
createXPathDocumentDefinition(self, path, nss, maps, cp, docDef=None)
createXsltDocumentDefinition(self, path, xsltSrc, cp, docDef=None)
Create an XSLT document definition from pieces
deleteResource(self, path, traverseAliases=None)
Delete any resource from the system.
get(self, key, failobj=None)
User Dict interface
has_key(self, key)
User Dict interface
index(self, item)
User List interface
items(self)
User Dict interface
iteritems(self)
User Dict interface
iterkeys(self)
User Dict interface
itervalues(self)
User Dict interface
keys(self)
User Dict interface
setPathTemporary(self, path, timeToLive)
Marks the specified repository object as temporary
values(self)
User Dict interface

Methods inherited from class Ft.Server.Client.Core.XmlDocumentClient.XmlDocumentClient

Methods inherited from class Ft.Server.Client.Core.RawFileClient.RawFileClient

Methods inherited from class Ft.Server.Client.Core.ResourceMetaDataClient.ResourceMetaDataClient

Globals

generators = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 4096)