ActionDef: Append based on parsing the subelement, not the element.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Tue, 16 Mar 2010 07:30:30 +0000 (00:30 -0700)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Tue, 16 Mar 2010 07:30:30 +0000 (00:30 -0700)
bulletml/parser.py

index 529876b449af43932677d2c3bf5980ce3bef446b..187fa86e7df4dc5f866abd741c4939f9b62c7579 100644 (file)
@@ -205,9 +205,9 @@ class BulletDef(object):
             elif tag == "speed":
                 self.speed = Speed(doc, subelem)
             elif tag == "action":
-                self.actions.append(ActionDef(doc, element))
+                self.actions.append(ActionDef(doc, subelem))
             elif tag == "actionRef":
-                self.actions.append(ActionRef(doc, element))
+                self.actions.append(ActionRef(doc, subelem))
 
     def __call__(self, params, rank):
         actions = []