'List the scripts tied to this object.'

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 Exception:
                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()
