'Hook to call install triggers.'

def trig(self, mode='?', profile=None, system=None, REMOTE_ADDR=None, **rest):

    self.__xmlrpc_setup()
    ip = REMOTE_ADDR
    if profile:
        rc = self.remote.run_install_triggers(mode, 'profile', profile, ip)
    else:
        rc = self.remote.run_install_triggers(mode, 'system', system, ip)
    return str(rc)
