Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10
    • Fix Version/s: 0.11
    • Component/s: Python Tools
    • Labels:
      None
    • Environment:

      Fedora 14

      Description

      I have:

      cat schema-1.xml
      <schema package="org.foobar">
      <class name="apple">
      <method name="rott" desc="rott">
      <arg name="speed" dir="I" type="uint32"/>
      <arg name="review" dir="O" type="sstr"/>
      </method>
      </class>
      </schema>

      Then I run "qmf-gen -2 schema-1.xml"
      Traceback (most recent call last):
      File "/usr/bin/qmf-gen", line 80, in <module>
      gen.makeV2PackageFile("V2Package.cpp", package, vars=vargs)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 467, in makeV2PackageFile
      stream = template.expand (schema)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 100, in expand
      self.expandLine (line, stream, object)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 88, in
      expandLine
      self.handler.substHandler (object, stream, tagObject, tagName)
      File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 392, in
      substHandler
      eval (call)
      File "<string>", line 1, in <module>
      File "/usr/lib/python2.7/site-packages/qmfgen/schema.py", line
      1734, in genV2ClassDefines
      if stat.unit:
      UnboundLocalError: local variable 'stat' referenced before assignment

        Activity

        Hide
        Angus Salkeld added a comment -

        Fix for the bug

        Show
        Angus Salkeld added a comment - Fix for the bug

          People

          • Assignee:
            Ted Ross
            Reporter:
            Angus Salkeld
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development