'Determine whether to actuate a link or not
@param component_id: the component_id (if not self.component_id)'

def actuate_link(self, component_id=None):

    if (not component_id):
        component_id = self.component_id
    if self.component:
        single = (component_id != None)
        component = self.component
        if component.link:
            actuate = self.component.actuate
            if ('linked' in self.get_vars):
                linked = self.get_vars.get('linked', False)
                linked = (linked in ('true', 'True'))
                if linked:
                    actuate = 'replace'
                else:
                    actuate = 'hide'
            if (actuate == 'link'):
                if ((self.method != 'delete') and (self.http != 'DELETE')):
                    return single
                else:
                    return (not single)
            elif (actuate == 'replace'):
                return True
            else:
                return False
        else:
            return True
    else:
        return False
