4Suite API Documentation

Module Ft.Server.Server.SCore.ContainerImp

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


class ContainerImp(Ft.Server.Server.SCore.XmlDocumentImp.XmlDocumentImp, Ft.Server.Server.Drivers.FtssDriver.DataStoreContainer)
A repository container


__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
__init__(self, path, driver, cache)
Overrides: __init__ from class XmlDocumentImp
Overides the length operator
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
Get the path of this object as a base path
Overrides: getBasePath from class XmlDocumentImp
Overidden to do return XML serialization of datastore container
Overrides: getContent from class XmlDocumentImp
has_key(self, key)
User Dict interface
index(self, item)
User List interfaces
User Dict interface
User Dict interface
User Dict interface
User Dict interface
User Dict interface
setContent(self, src)
Overrides: setContent from class XmlDocumentImp
setPathTemporary(self, path, timeToLive)
Marks the specified repository object as temporary
User Dict interface

Methods inherited from class Ft.Server.Server.SCore.XmlDocumentImp.XmlDocumentImp

Methods inherited from class Ft.Server.Server.SCore.RawFileImp.RawFileImp

Methods inherited from class Ft.Server.Server.SCore.ResourceMetaDataImp.ResourceMetaDataImp

Methods inherited from class Ft.Server.Server.Drivers.FtssDriver.DataStoreContainer


resourceType = 1


FTSERVER_NAMESPACE = 'http://xmlns.4suite.org/reserved'
RDF_MS_BASE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
SET_TIME_TO_LIVE_XUPDATE = '<xupdate:modifications\n version="1.0"\n xmlns:x...oLive></xupdate:append>\n</xupdate:modifications>\n'
UPDATE_TIME_TO_LIVE_XUPDATE = '<xupdate:modifications\n version="1.0"\n xmlns:x...ve">%s</xupdate:update>\n</xupdate:modifications>\n'
XLINK_NAMESPACE = u'http://www.w3.org/1999/xlink'
XSL_NAMESPACE = u'http://www.w3.org/1999/XSL/Transform'