Example #1
0
    def execute(self):
        web = WebContainer.get_web()
        connection_id = web.get_form_value("connection_id")

        connection = SObjectConnection.get_by_id(connection_id)
        if connection:
            connection.delete()

        self.description = "Deleted connection"
Example #2
0
    def execute(self):
        web = WebContainer.get_web()
        connection_id = web.get_form_value("connection_id")

        connection = SObjectConnection.get_by_id(connection_id)
        if connection:
            connection.delete()

        self.description = "Deleted connection"