'simply call the right function.'

def func(self):

    if self.obj.db.lid_locked:
        self.caller.msg('This    lid    seems    locked    in    place    for    the    moment.')
        return
    string = '\nA    ticking    sound    is    heard,    like    a    winding    mechanism.    Seems    '
    string += 'the    lid    will    soon    close    again.'
    self.caller.msg(string)
    self.caller.location.msg_contents(('%s    opens    the    lid    of    the    button.' % self.caller.name), exclude=self.caller)
    self.obj.cmdset.add(LidClosedCmdSet)
    self.obj.open_lid()
