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()
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
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
def _extract_uuid(text): text = text[text.find("@key="):-1].replace("@key=", "") if text.startswith("uuid:"): text = text.replace("uuid:", "") return text