projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch actors to new-style elements
[mudpy.git]
/
mudpy
/
misc.py
diff --git
a/mudpy/misc.py
b/mudpy/misc.py
index
c3e1940
..
231858a
100644
(file)
--- a/
mudpy/misc.py
+++ b/
mudpy/misc.py
@@
-944,16
+944,12
@@
class User:
def new_avatar(self):
"""Instantiate a new, unconfigured avatar for this user."""
counter = 0
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(
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)
self.avatar.append("inherit", "archetype:avatar")
self.account.append("avatars", self.avatar.key)