'This function is called when object is created. Use this
instead of e.g. __init__.'

def at_object_creation(self):

    desc = 'This    is    a    large    red    button,    inviting    yet    evil-looking.    '
    desc += 'A    closed    glass    lid    protects    it.'
    self.db.desc = desc
    self.db.lid_open = False
    self.db.lamp_works = True
    self.db.lid_locked = False
    self.cmdset.add_default(cmdsetexamples.DefaultCmdSet, permanent=True)
    self.scripts.add(scriptexamples.ClosedLidState)
    self.scripts.add(scriptexamples.BlinkButtonEvent)
