def __getitem__(self, key): view_dirs = self.gconf_client.all_dirs(GCONF_PLUGINVIEWS) for dir in view_dirs: if key == gconf.unescape_key(dir.split('/')[-1], len(dir.split('/')[-1])): return GConfListWrapper(dir+'/layout') raise KeyError, key
def __iter__(self): view_dirs = self.gconf_client.all_dirs(GCONF_PLUGINVIEWS) for dir in view_dirs: yield gconf.unescape_key(dir.split('/')[-1], len(dir.split('/')[-1]))