comparison components/containable.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
22 """Constructor""" 22 """Constructor"""
23 Base.__init__(self, bulk=int, weight=int, item_type=str, image=str, container=object, slot=int) 23 Base.__init__(self, bulk=int, weight=int, item_type=str, image=str, container=object, slot=int)
24 24
25 @property 25 @property
26 def saveable_fields(self): 26 def saveable_fields(self):
27 fields = deepcopy(self.fields) 27 fields = self.fields.keys()
28 del fields["container"] 28 fields.remove("container")
29 return fields 29 return fields