Moved tags to the end of examine command output.

This commit is contained in:
Griatch 2015-03-02 21:39:27 +01:00
parent 9ffba037f8
commit 5da4da34c0

View file

@ -1798,10 +1798,6 @@ class CmdExamine(ObjManipCommand):
string += "\n{wPermissions{n: %s" % perms_string
tags_string = utils.fill(", ".join(tag for tag in obj.tags.all()), indent=5)
if tags_string:
string += "\n{wTags{n: %s" % tags_string
locks = str(obj.locks)
if locks:
locks_string = utils.fill("; ".join([lock for lock in locks.split(';')]), indent=6)
@ -1853,6 +1849,12 @@ class CmdExamine(ObjManipCommand):
string += "\n{wScripts{n:\n %s" % obj.scripts
# add the attributes
string += self.format_attributes(obj)
# display Tags
tags_string = utils.fill(", ".join(tag for tag in obj.tags.all()), indent=5)
if tags_string:
string += "\n{wTags{n: %s" % tags_string
# add the contents
exits = []
pobjs = []