diff options
author | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-29 10:57:09 -0500 |
---|---|---|
committer | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-29 10:57:09 -0500 |
commit | ad80fe8e7e1846906b838aaefafa3ea9c3995e42 (patch) | |
tree | d5cc8d54dd0fb7440b774d44c0a2889fe6214228 | |
parent | b881b22c15f5e9bf9e0630a31a36ed4c550984de (diff) |
Do not re-verify term if count already acceptable
-rw-r--r-- | pyxb/binding/content.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyxb/binding/content.py b/pyxb/binding/content.py index d2870fa..6839a83 100644 --- a/pyxb/binding/content.py +++ b/pyxb/binding/content.py @@ -665,7 +665,8 @@ class ParticleState (pyxb.cscRoot): self.__count = self.__particle.minOccurs() def verifyComplete (self): - self.__termState._verifyComplete(self) + if not self.__particle.satisfiesOccurrences(self.__count): + self.__termState._verifyComplete(self) if not self.__particle.satisfiesOccurrences(self.__count): raise pyxb.MissingContentError('incomplete') if self.__parentState is not None: |