Ejemplo n.º 1
0
 def find_options(lst, prefix):
     other = ''
     opts = [str for str in lst if str.startswith(prefix)]
     if len(opts) > 0:
         for opt in opts:
             other += ' ' + opt
             GNUARMEclipse.remove_option(lst, opt)
     return other.strip()
Ejemplo n.º 2
0
 def find_options(lst, prefix):
     other = ''
     opts = [str for str in lst if str.startswith(prefix)]
     if len(opts) > 0:
         for opt in opts:
             other += ' ' + opt
             GNUARMEclipse.remove_option(lst, opt)
     return other.strip()
Ejemplo n.º 3
0
 def getConfigValue(self, str):
     # Not testing read-only yet.
     # Server sets these runtime properties at startup.
     if str.startswith("omero.cluster.read_only.runtime."):
         return "false"
     rv = self.return_values.pop(0)
     if isinstance(rv, omero.ServerError):
         raise rv
     else:
         return rv
Ejemplo n.º 4
0
 def find_options(lst, option):
     tmp = [str for str in lst if str.startswith(option)]
     if len(tmp) > 0:
         return tmp[0]
     else:
         return None
Ejemplo n.º 5
0
def _extract_uuid(text):
    text = text[text.find("@key="):-1].replace("@key=", "")
    if text.startswith("uuid:"):
        text = text.replace("uuid:", "")
    return text
Ejemplo n.º 6
0
def _extract_uuid(text):
    text = text[text.find("@key="):-1].replace("@key=", "")
    if text.startswith("uuid:"):
        text = text.replace("uuid:", "")
    return text
Ejemplo n.º 7
0
 def find_options(lst, option):
     tmp = [str for str in lst if str.startswith(option)]
     if len(tmp) > 0:
         return tmp[0]
     else:
         return None