""" Here is defined the Table class (common). :Author: Ivan Vilata i Balaguer :Contact: ivilata@carabos.com :Created: 2007-02-15 :License: BSD :Revision: $Id: _table_common.py 2426 2007-02-23 12:37:49Z ivilata $ """ from tables.path import joinPath, splitPath def _indexNameOf(node): return '_i_%s' % node._v_name def _indexPathnameOf(node): nodeParentPath = splitPath(node._v_pathname)[0] return joinPath(nodeParentPath, _indexNameOf(node)) def _indexPathnameOfColumn(table, colpathname): return joinPath(_indexPathnameOf(table), colpathname)