def __str__(self):
        scripts = ScriptDB.objects.get_all_scripts_on_obj(self.obj)
        string = ""
        for script in scripts:
            interval = "inf"
            next_repeat = "inf"
            repeats = "inf"
            if script.interval > 0:
                interval = script.interval
                if script.repeats:
                    repeats = script.repeats
                try:
                    next_repeat = script.time_until_next_repeat()
                except:
                    next_repeat = "?"
            string += _("\n '%(key)s' (%(next_repeat)s/%(interval)s, %(repeats)s repeats): %(desc)s") % \
              {"key": script.key, "next_repeat": next_repeat,
               "interval": interval, "repeats": repeats, "desc": script.desc}
        return string.strip()
Return socket connections.  If pid == -1 return system-wide
dataset/ETHPy150Open evennia/evennia/evennia/scripts/scripthandler.py/ScriptHandler.__str__--crossover with--dataset/ETHPy150Open giampaolo/psutil/psutil/_pssunos.py/net_connections