def new_avatar(self):
"""Instantiate a new, unconfigured avatar for this user."""
counter = 0
- while "avatar:" + self.account.get("name") + ":" + str(
- counter
- ) in universe.categories.get("actor", {}).keys():
+ while ("avatar_%s_%s" % (self.account.get("name"), counter)
+ in universe.categories.get("actor", {}).keys()):
counter += 1
self.avatar = Element(
- "actor:avatar:" + self.account.get("name") + ":" + str(
- counter
- ),
- universe, old_style=True
- )
+ "actor.avatar_%s_%s" % (self.account.get("name"), counter),
+ universe)
self.avatar.append("inherit", "archetype:avatar")
self.account.append("avatars", self.avatar.key)
)
test_set_facet = (
- (2, "> ", "set actor:avatar:admin:0 gender female"),
+ (2, "> ", "set actor.avatar_admin_0 gender female"),
(2, r'You have successfully \(re\)set the "gender" facet of element', ""),
)
(2, "> ", "show element mudpy.limit"),
(2, r'These are the properties of the "mudpy\.limit" element.*'
r' \x1b\[32mpassword_tries: \x1b\[31m3.*> ',
- "show element actor:avatar:admin:0"),
- (2, r'These are the properties of the "actor:avatar:admin:0" element.*'
+ "show element actor.avatar_admin_0"),
+ (2, r'These are the properties of the "actor.avatar_admin_0" element.*'
r' \x1b\[32mgender: \x1b\[31mfemale.*> ', ""),
)