diff components/character_statistics.py @ 111:17fab1f2bf7d

Added saveable_fields to the CharacterStatistics component.
author KarstenBock@gmx.net
date Sat, 01 Oct 2011 14:09:20 +0200
parents 39466c901dc9
children 741d7d193bad
line wrap: on
line diff
--- 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