############################################################################## # # Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """ Handles reading the properties for an object that comes from the filesystem. $Id: FSMetadata.py 68524 2006-06-08 16:54:49Z efge $ """ import logging from os.path import exists from ConfigParser import ConfigParser from warnings import warn import re logger = logging.getLogger('CMFCore.FSMetadata') class CMFConfigParser(ConfigParser): """ This our wrapper around ConfigParser to solve a few minor niggles with the code """ # adding in a space so that names can contain spaces OPTCRE = re.compile( r'(?P