@staticmethod
  def loads(data):
    dic = json.loads(data)
    dic = dict(map(lambda k: (str(k), dic.get(k)), dic.keys()))
    if dic['VERSION'] != SERIALIZATION_VERSION:
      LOG.error('Design version mismatch. Found %s; expect %s' % (dic['VERSION'], SERIALIZATION_VERSION))

    # Convert to latest version
    del dic['VERSION']
    if 'type' not in dic['query'] or dic['query']['type'] is None:
      dic['query']['type'] = 0
    if 'server' not in dic['query']:
      raise RuntimeError(_('No server!'))
    if 'database' not in dic['query']:
      raise RuntimeError(_('No database!'))

    design = SQLdesign()
    design._data_dict = dic
    return design
Get the URI for the device.
dataset/ETHPy150Open cloudera/hue/desktop/libs/librdbms/src/librdbms/design.py/SQLdesign.loads--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/_CalculateDeviceURI