--- a/etherlab/etherlab.py Wed Sep 12 18:13:28 2012 +0200
+++ b/etherlab/etherlab.py Thu Sep 13 11:07:51 2012 +0200
@@ -232,7 +232,7 @@
def _getCIA402AxisRef(self):
- data = wx.TextDataObject(str(("%IW%s.0" % ".".join(map(str, self.GetCurrentLocation())),
+ data = wx.TextDataObject(str(("%%IW%s.0" % ".".join(map(str, self.GetCurrentLocation())), "location", "AXIS_REF", self.CTNName(), "")))
dragSource = wx.DropSource(self.GetCTRoot().AppFrame)
@@ -1149,6 +1149,22 @@
EtherCATInfoClasses = GenerateClassesFromXSD(os.path.join(os.path.dirname(__file__), "EtherCATInfo.xsd"))
+cls = EtherCATInfoClasses["EtherCATBase.xsd"].get("DictionaryType", None) + cls.loadXMLTreeArgs = None + setattr(cls, "_loadXMLTree", getattr(cls, "loadXMLTree")) + def loadXMLTree(self, *args): + self.loadXMLTreeArgs = args + setattr(cls, "loadXMLTree", loadXMLTree) + if self.loadXMLTreeArgs is not None: + self._loadXMLTree(*self.loadXMLTreeArgs) + self.loadXMLTreeArgs = None + setattr(cls, "load", load) cls = EtherCATInfoClasses["EtherCATInfo.xsd"].get("DeviceType", None)
@@ -1220,6 +1236,7 @@
for dictionary in self.GetProfileDictionaries():
for object in dictionary.getObjects().getObject():
entry_index = object.getIndex().getcontent()