def loadDefaultData(self): """Loads the default TinyMCE configuration. The configuration is loaded from the "config.ini" file. """ manage_addLocalFS(self, 'tinymce', '', join(dirname(__file__), 'tinymce')) config = ConfigParser() config.read(join(dirname(__file__), 'config.ini')) for section in config.sections(): for option in config.options(section): self.configuration[option] = [i.strip() for i in config.get(section, option).split(',')]
def createLocalFS(portal): if 'photos_heb_tmp' not in portal.objectIds(): manage_addLocalFS(portal, 'photos_heb_tmp', 'Photos heb temporaires', tempfile.gettempdir()) if 'photos_proprio' not in portal.objectIds(): manage_addLocalFS(portal, 'photos_proprio', 'Photos proprio', tempfile.gettempdir()) if 'photos_proprio_tmp' not in portal.objectIds(): manage_addLocalFS(portal, 'photos_proprio_tmp', 'Photos proprio temporaires', tempfile.gettempdir())