comparison components/equipable.py @ 97:f94d4577ca5e

saveable_fields property of components is now a List.
author KarstenBock@gmx.net
date Tue, 27 Sep 2011 16:27:36 +0200
parents 8363261b658e
children
comparison
equal deleted inserted replaced
96:8363261b658e 97:f94d4577ca5e
23 def __init__(self): 23 def __init__(self):
24 Base.__init__(self, possible_slots=list, wearer=object, in_slot=str) 24 Base.__init__(self, possible_slots=list, wearer=object, in_slot=str)
25 25
26 @property 26 @property
27 def saveable_fields(self): 27 def saveable_fields(self):
28 fields = deepcopy(self.fields) 28 fields = self.fields.keys()
29 del fields["wearer"] 29 fields.remove("wearer")
30 return fields 30 return fields