Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4670

Twisted, slots, and void method fails with "object has no attribute 'success'"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.3, 0.10.0, 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: Python - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When generating Twisted code for a void method, the compiler accidentally assigns a value to the result.success field of the result object, even though, as a void method, there is no success value and the result object has no such field. If the slots option is not specified as well, this does not cause a problem, it just sets a new field that is never used. However, with the slots option, attempting to set this undefined field causes the errorĀ "object has no attribute 'success'"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                palmer Palmer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: