4Suite API Documentation

Module Ft.Server.Server.Drivers.MySQL.MySQLContainer

Classes:
Globals:

Classes

class MySQLContainer(Ft.Server.Server.Drivers.FtssDriver.DataStoreContainer)
Implements simple containment as a table in MySQL:
parent   /  child
------------------
/parent1 |  child1
/parent2 |  child2

Methods

__init__(self, db)
Used if instanciated directly in order to do initialization
fetchChildren(self, parent)
Returns a list of child uris for the given parent. Parent is a PathImp
initialize(self)
Initialize the table
manageChildren(self, parent, child, add=True)
Adds/remove the child specified by the given path to the parent (path - a PathImp)

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

Globals

CREATE_CONTAINMENT_TABLE = '\nCREATE TABLE %s (\n parent varchar(255) NOT N...,\n INDEX %s_indexP (parent(255))\n) TYPE=InnoDB'
FTSERVER_NAMESPACE = 'http://xmlns.4suite.org/reserved'
FTSS_CONTAIMENT_TABLE = 'ftss_containment'
XLINK_NAMESPACE = u'http://www.w3.org/1999/xlink'