changeset 141:997cc6d182d5

Added saveable_fields to the CharacterStatistics component.
author KarstenBock@gmx.net
date Sat, 01 Oct 2011 14:09:20 +0200
parents e1ca6a99eb85
children a5ea5b8f63d4
files src/parpg/components/character_statistics.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/components/character_statistics.py	Sat Oct 01 14:07:40 2011 +0200
+++ b/src/parpg/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