Commits

elbaschid committed afbaff6

fixed issue with fallback to schema entries

Comments (0)

Files changed (1)

revelation_indicator

         if value is None:
 
             schema_value = self.client.get(
-                self.__resolve_keypath('/schemas/%s' % key)
+                self.__resolve_keypath('/schemas%s' % key)
             )
 
+            if schema_value is None:
+                logger.debug('could not retrieve schema_value: %s', key)
+                return None
+
             if schema_value.type == gconf.VALUE_SCHEMA:
                 value = schema_value.get_schema().get_default_value()
                 self.client.set_value(key, value)
     def __cb_popup_activate(self, widget, data = None):
         self.locktimer.reset()
 
-        action = self.config.get("menuaction")
+        #action = self.config.get("menuaction")
 
-        if action == "show":
-            self.entry_show(data)
+        #if action == "show":
+        self.entry_show(data)
 
-        elif action == "copy":
-            self.entry_copychain(data)
+        #elif action == "copy":
+        #    self.entry_copychain(data)
 
-        elif self.__launcher_valid(data):
-            self.entry_goto(data)
+        #elif self.__launcher_valid(data):
+        #    self.entry_goto(data)
 
-        else:
-            self.entry_show(data)
+        #else:
+        #    self.entry_show(data)
 
 
     def entry_show(self, e, focusafter = False):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.