# HG changeset patch # User KarstenBock@gmx.net # Date 1317470960 -7200 # Node ID 17fab1f2bf7d853d20c6a9da9dfa8d521ac20dbf # Parent 39466c901dc925e4ef9485f24243b96a3ebb2385 Added saveable_fields to the CharacterStatistics component. diff -r 39466c901dc9 -r 17fab1f2bf7d components/character_statistics.py --- a/components/character_statistics.py Sat Oct 01 14:07:40 2011 +0200 +++ b/components/character_statistics.py Sat Oct 01 14:09:20 2011 +0200 @@ -20,4 +20,10 @@ """Constructor""" Base.__init__(self, gender=str, picture=str, age=int, origin=str, primary_stats=dict, secondary_stats=dict, traits=list, - ) \ No newline at end of file + ) + @property + def saveable_fields(self): + fields = self.fields.keys() + fields.remove("primary_stats") + fields.remove("secondary_stats") + return fields \ No newline at end of file