Permalink
Browse files

@amol-'s fix for the Deferred subclassing problem.

 - This code runs significantly faster.  :)
  • Loading branch information...
ralphbean committed Jul 11, 2012
1 parent d26389d commit c08c0508b07643fc0e1bbf99f5a7a9866e05edc3
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/core/widgets.py
@@ -236,7 +236,7 @@ def post_define(cls):
)
cls.resources = [r(parent=cls) for r in cls.resources]
cls._deferred = [k for k, v in cls.__dict__.iteritems()
cls._deferred = [k for k, v in inspect.getmembers(cls)
if isinstance(v, pm.Deferred)]
cls._attr = [p.name for p in cls._params.values() if p.attribute]

0 comments on commit c08c050

Please sign in to comment.