Browse files

Notify people that RepeatingWidget breaks when child is a DisplayOnly…

  • Loading branch information...
amol- committed Aug 14, 2015
1 parent 081aff5 commit 4c15c5ae02db1956d51685b3f444cfc76fdf1e55
Showing with 3 additions and 0 deletions.
  1. +3 −0 tw2/core/
@@ -815,6 +815,9 @@ def post_define(cls):
not issubclass(cls.child, Widget):
raise pm.ParameterError("Child must be a Widget")
if issubclass(cls.child, DisplayOnlyWidget):
raise pm.ParameterError('Child cannot be a DisplayOnlyWidget')
if getattr(cls.child, 'id', None):
raise pm.ParameterError("Child must have no id")

0 comments on commit 4c15c5a

Please sign in to comment.