comparison components/fifeagent.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 d1b0b3da4b8b
children 75c0b728ccf3
comparison
equal deleted inserted replaced
96:8363261b658e 97:f94d4577ca5e
23 """Constructor""" 23 """Constructor"""
24 Base.__init__(self, layer=object, behaviour=object) 24 Base.__init__(self, layer=object, behaviour=object)
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["layer"] 29 fields.remove("layer")
30 del fields["behaviour"] 30 fields.remove("behaviour")
31 return fields 31 return fields
32 32
33 33
34 def setup_behaviour(agent): 34 def setup_behaviour(agent):
35 """Attach the behaviour to the layer""" 35 """Attach the behaviour to the layer"""