Example #1
0
 def saveState(self):
     '''
     Saves paths to configuration.
     '''
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "enabled", location.get(enabled=True))
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "disabled", location.get(enabled=False))
Example #2
0
 def saveState(self):
     '''
     Saves paths to configuration.
     '''
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "enabled", location.get(enabled=True))
     config.set(self._CONFIG_NAME, self._CONFIG_SECTION_LOCATIONS,
                "disabled", location.get(enabled=False))
Example #3
0
 def testGetDisabled(self):
     location.add(_LOCATION_DIR, False)
     self.failUnless(_LOCATION_DIR in location.get())
     self.failIf(_LOCATION_DIR in location.get(True))
Example #4
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
Example #5
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())
Example #6
0
 def testGetDisabled(self):
     location.add(_LOCATION_DIR, False)
     self.failUnless(_LOCATION_DIR in location.get())
     self.failIf(_LOCATION_DIR in location.get(True))
Example #7
0
 def testGetEnabled(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get(True))
Example #8
0
 def testGet(self):
     location.add(_LOCATION_DIR)
     self.failUnless(_LOCATION_DIR in location.get())