Author: johannes
Date: 2006-10-17 08:46:51 -0500 (Tue, 17 Oct 2006)
New Revision: 8814

Modified:
   trunk/gnue-forms/src/GFObjects/GFObj.py
Log:
Fixed checking of block attribute


Modified: trunk/gnue-forms/src/GFObjects/GFObj.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFObj.py     2006-10-17 13:36:15 UTC (rev 
8813)
+++ trunk/gnue-forms/src/GFObjects/GFObj.py     2006-10-17 13:46:51 UTC (rev 
8814)
@@ -156,7 +156,7 @@
           listed in the block mapping of the logic instance
         """
 
-        if not hasattr(self, 'block'):
+        if getattr(self, 'block', None) is None:
             owner = self.getParent()
             while owner:
                 self.block = getattr(owner, 'block', None)



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to