[conduit/config-unstable] Remove TestSyncNeedConfigure



commit c04f31fa9f8f58bf65dfbed74628790f093d620e
Author: John Stowers <john stowers gmail com>
Date:   Tue May 19 22:58:15 2009 +1200

    Remove TestSyncNeedConfigure
    
    The old configure() and set_cpnfiguration method of working
    with dataproviders has been replaced, and all logic has been
    implemented in is_configured in the appropriate dataproviders
---
 conduit/modules/TestModule.py |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/conduit/modules/TestModule.py b/conduit/modules/TestModule.py
index 1de2bcd..1857b0b 100644
--- a/conduit/modules/TestModule.py
+++ b/conduit/modules/TestModule.py
@@ -37,7 +37,6 @@ MODULES = {
     "TestConversionArgs" :      { "type": "dataprovider" },
     "TestTwoWay" :              { "type": "dataprovider" },
     "TestFailRefresh" :         { "type": "dataprovider" },
-    "TestSinkNeedConfigure" :   { "type": "dataprovider" },
     "TestiPodMusic" :           { "type": "dataprovider" },
     "TestiPodVideo" :           { "type": "dataprovider" },
     "TestFactory" :             { "type": "dataprovider-factory" },
@@ -604,30 +603,6 @@ class TestWebTwoWay(TestTwoWay):
         log.debug("REFRESH (thread: %s)" % thread.get_ident())
         Web.LoginMagic(self._name_, self.url, browser=self.browser, login_function=lambda: True)
 
-class TestSinkNeedConfigure(_TestBase, DataProvider.DataSink):
-
-    _name_ = "Test Need Configure"
-    _description_ = "Needs Configuration"
-    _category_ = conduit.dataproviders.CATEGORY_TEST
-    _module_type_ = "sink"
-    _in_type_ = "test_type"
-    _out_type_ = "test_type"
-    _icon_ = "preferences-system"
-
-    def __init__(self, *args):
-        DataProvider.DataSink.__init__(self, *args)
-        _TestBase.__init__(self)
-        self.isConfigured = False
-        
-    def configure(self, window):
-        self.isConfigured = True
-
-    def set_configuration(self, config):
-        self.isConfigured = True
-
-    def is_configured(self, isSource, isTwoWay):
-        return self.isConfigured
-
 class TestFailRefresh(TestTwoWay):
 
     _name_ = "Test Fail Refresh"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]