def __init__(self):
     self.flex_storage = {}
     for storage_method, storage_name in SUPPORTED_FLEX_STORAGE:
         try:
             exec storage_method
             self.flex_storage[storage_name] = eval("%s()" % storage_name)
         except ImportError, e:
             LOG.info("%s is not installed", storage_name)
def uninstall(self):
    out = StringIO.StringIO()

    # Uninstall configlets
    try:
        cptool = getToolByName(self, 'portal_controlpanel')
        cptool.unregisterApplication(PROJECTNAME)
    except:
        LOG.info("Error at uninstall", exc_info=True)

    print >> out, "Successfully uninstalled %s." % PROJECTNAME

    return out.getvalue()