diff gamemodel.py @ 89:939984cff702

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 0411a4bcceee
children 4a8a0cd7f79a
line wrap: on
line diff
--- a/gamemodel.py	Mon Sep 26 15:44:42 2011 +0200
+++ b/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: