def uninstallFinalSteps(context):
    """Uninstall Quills stuff that GS profiles cannot catch.
    """
    if context.readDataFile('quills_product_various.txt') is None:
        return
    out = StringIO()
    portal = context.getSite()
    delNewDiscussionReplyFormAction(portal, out)
    return out.getvalue()
def uninstallFinalSteps(context):
    """Uninstall Quills stuff that GS profiles cannot catch.
    """
    if context.readDataFile('quills_product_various.txt') is None:
        return
    out = StringIO()
    portal = context.getSite()
    delNewDiscussionReplyFormAction(portal, out)
    return out.getvalue()
def uninstall(self):
    """Uninstall QuillsEnabled.
    """
    out = StringIO()
    portal_controlpanel = getToolByName(self, 'portal_controlpanel')
    portal_controlpanel.unregisterApplication(config.PROJECTNAME)
    unregisterStylesheets(self)
    delNewDiscussionReplyFormAction(self, out)
    #permissions.unsetupPortalSecurity(self, out)
    print >> out, u"Successfully uninstalled %s." % config.PROJECTNAME
    return out.getvalue()