

def func(self):
    '\n        inp is the dict produced in ObjManipCommand.parse()\n        '
    caller = self.caller
    if (not self.args):
        caller.msg('Usage: @wipe <object>[/attribute/attribute...]')
        return
    objname = self.lhs_objattr[0]['name']
    attrs = self.lhs_objattr[0]['attrs']
    obj = caller.search(objname)
    if (not obj):
        return
    if (not obj.access(self, 'edit')):
        caller.msg('You are not allowed to do that.')
        return
    if (not attrs):
        obj.attributes.clear()
        string = ('Wiped all attributes on %s.' % obj.name)
    else:
        for attrname in attrs:
            obj.attributes.remove(attrname)
        string = 'Wiped attributes %s on %s.'
        string = (string % (','.join(attrs), obj.name))
    caller.msg(string)

dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py CmdWipe.func/VarMisuse@89/144 `caller`->`self`