changeset 1346:4fdc998d3dc3

Fix issue of setting proxy for require for composition class
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 12 Feb 2011 17:55:12 +0800
parents e0400a2b7c35
children aaa88d805aac
files pyink/trait.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/trait.py	Fri Feb 11 15:10:37 2011 +0800
+++ b/pyink/trait.py	Sat Feb 12 17:55:12 2011 +0800
@@ -179,7 +179,7 @@
                 continue
             
             value = getattr(a_trait, attr)
-            if value == require:
+            if isinstance(value, require):
                 continue
             
             attrname_cnts[attr] = attrname_cnts.setdefault(attr, 0) + 1