From 88efc50054bd5fe8c313a0ff601423dcb83a7da7 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 6 Jul 2014 16:08:29 +0200 Subject: [PATCH] Fixed outbut listing bug in @set. --- src/commands/default/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/default/building.py b/src/commands/default/building.py index 291c076baa..4b176c3b73 100644 --- a/src/commands/default/building.py +++ b/src/commands/default/building.py @@ -1297,7 +1297,7 @@ class CmdSetAttribute(ObjManipCommand): if self.rhs is None: # no = means we inspect the attribute(s) if not attrs: - attrs = [attr.key for attr in obj.get_all_attributes()] + attrs = [attr.key for attr in obj.attributes.all()] for attr in attrs: if obj.attributes.has(attr): string += "\nAttribute %s/%s = %s" % (obj.name, attr, @@ -1305,7 +1305,7 @@ class CmdSetAttribute(ObjManipCommand): else: string += "\n%s has no attribute '%s'." % (obj.name, attr) # we view it without parsing markup. - self.caller.msg(string.strip(), data={"raw": True}) + self.caller.msg(string.strip(), raw=True) return else: # deleting the attribute(s)