diff src/parpg/gamemodel.py @ 119:3564a46544bc

Added Base component, which has a saveable_fields property. It is supposed to be derived from, thus it is not in the components list.
author KarstenBock@gmx.net
date Tue, 27 Sep 2011 14:58:03 +0200
parents 29869273f9e1
children 1703dbb4fefb
line wrap: on
line diff
--- a/src/parpg/gamemodel.py	Mon Sep 26 15:44:42 2011 +0200
+++ b/src/parpg/gamemodel.py	Tue Sep 27 14:58:03 2011 +0200
@@ -694,7 +694,7 @@
                         pass                        
                     else:
                         comp_vals = getattr(entity, name)
-                        for field in component.fields:
+                        for field in component.saveable_fields:
                             try:
                                 comp_data[field] = getattr(comp_vals, field)
                             except AttributeError: