t4ngo / dragonfly

ARCHIVED! - Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS) and Windows Speech Recognition (WSR)
GNU Lesser General Public License v3.0
364 stars 82 forks source link

Compound element does not return a value under certain circumstances #1

Closed t4ngo closed 10 years ago

t4ngo commented 10 years ago

This bug report and patch has been taken from Google Code issue 13, reported by matt@getfuelbox.com on 2013-03-06.

What steps will reproduce the problem?

  1. create an instance of the compound element class, or subclass it.
  2. have it executed within a rule recognition

What is the expected output? What do you see instead? Expected value should be the elements from the compound spec. Instead I get no.

What version of the product are you using? On what operating system? dragonfly-0.6.6b1 / svn rev 147

Please provide any additional information below. Attached is a patch that fixes this behavior. The issue is a missing return.