4Suite
™
API Documentation
►
Module
Ft
.
Server
.
Server
.
Drivers
.FlatFile
Classes:
FlatFileContainer
,
FlatFileDriver
Functions:
Begin
,
CONTENT_PATH
,
Destroy
,
Exists
,
GetLock
,
Initialize
,
InitializeModule
,
Maintain
,
createFlatFilePath
Fields:
FTSERVER_NAMESPACE
,
NAME
,
SYSTEM_RDF_FILE
,
USER_RDF_FILE
,
XLINK_NAMESPACE
,
g_fileLocks
,
g_typeDirs
Classes
class
FlatFileContainer
(
Ft.Server.Server.Drivers.FtssDriver.DataStoreContainer
)
Methods
__init__
(
self
,
db
)
deleteContainer
(
self
,
path
)
fetchChildren
(
self
,
parent
)
initialize
(
self
)
manageChildren
(
self
,
parent
,
child
,
add
=True
)
Methods inherited from class
Ft.Server.Server.Drivers.FtssDriver.DataStoreContainer
childReferenceXML
,
createContainer
class
FlatFileDriver
(
FlatFileContainer
)
Methods
__init__
(
self
,
root
)
commit
(
self
)
createFile
(
self
,
path
,
typ
,
content
)
deleteFile
(
self
,
path
,
typ
)
fetchFile
(
self
,
path
,
typ
)
getSystemModel
(
self
)
getUserModel
(
self
)
hasFile
(
self
,
path
,
typ
)
rollback
(
self
)
updateFile
(
self
,
path
,
typ
,
content
)
Methods inherited from class
FlatFileContainer
deleteContainer
,
fetchChildren
,
initialize
,
manageChildren
Methods inherited from class
Ft.Server.Server.Drivers.FtssDriver.DataStoreContainer
childReferenceXML
,
createContainer
Functions
Begin
(
**properties
)
CONTENT_PATH
= createFlatFilePath(
root
,
path
,
t
)
Destroy
(
properties
,
tryOnly
=0
)
Exists
(
properties
)
GetLock
(
fName
,
typ
)
Initialize
(
properties
)
InitializeModule
()
Maintain
(
properties
)
createFlatFilePath
(
root
,
path
,
t
)
Fields
FTSERVER_NAMESPACE
= 'http://xmlns.4suite.org/reserved'
NAME
= 'Flat File'
SYSTEM_RDF_FILE
= 'system-rdf'
USER_RDF_FILE
= 'user-rdf'
XLINK_NAMESPACE
= u'http://www.w3.org/1999/xlink'
g_fileLocks
= {}
g_typeDirs
= {1: 'metadata', 2: 'content', 3: 'cache', 4: 'sessions'}