setting must have public method to get getproperties with path
authorEmmanuel Garette <egarette@cadoles.com>
Sun, 1 Nov 2015 09:57:36 +0000 (10:57 +0100)
committerEmmanuel Garette <egarette@cadoles.com>
Sun, 1 Nov 2015 09:57:36 +0000 (10:57 +0100)
tiramisu/setting.py

index f6e331c..39c4152 100644 (file)
@@ -337,9 +337,9 @@ class Settings(object):
 
     def __getitem__(self, opt):
         path = opt.impl_getpath(self._getcontext())
-        return self._getitem(opt, path)
+        return self.getproperties(opt, path)
 
-    def _getitem(self, opt, path, setting_properties=undefined):
+    def getproperties(self, opt, path, setting_properties=undefined):
         return Property(self,
                         self._getproperties(opt, path,
                                             setting_properties=setting_properties),