Revision: 3370
Author: jussi.ao.malinen
Date: Fri May 21 01:58:56 2010
Log: fixed parent
http://code.google.com/p/robotframework/source/detail?r=3370

Modified:
 /trunk/src/robot/parsing/newmodel.py

=======================================
--- /trunk/src/robot/parsing/newmodel.py        Fri May 21 01:31:42 2010
+++ /trunk/src/robot/parsing/newmodel.py        Fri May 21 01:58:56 2010
@@ -24,10 +24,10 @@
 from datareader import FromFilePopulator, FromDirectoryPopulator


-def TestData(path):
-    if os.path.isdir(path):
-        return TestDataDirectory(path)
-    return TestCaseFile(path)
+def TestData(parent=None, source=None):
+    if os.path.isdir(source):
+        return TestDataDirectory(parent, source)
+    return TestCaseFile(parent, source)


 class _TestData(object):
@@ -55,7 +55,7 @@
 class TestCaseFile(_TestData):

     def __init__(self, parent=None, source=None):
-        _TestData.__init__(self, source)
+        _TestData.__init__(self, parent, source)
self.directory = os.path.dirname(self.source) if self.source else None
         self.setting_table = TestCaseFileSettingTable(self)
         self.variable_table = VariableTable(self)

Reply via email to