Beispiel #1
0
    def _read(self, name, jsonfile, connection=None, save_connection=True):
        jf = open(jsonfile).read()
        data = json.loads(jf)

        if name is not None:
            data['group-name'] = name

        group = Group.unmarshal(data,
                                connection=connection,
                                save_connection=save_connection)
        return group
Beispiel #2
0
    def _read(self, name, jsonfile,
              connection=None, save_connection=True):
        jf = open(jsonfile).read()
        data = json.loads(jf)

        if name is not None:
            data['group-name'] = name

        group = Group.unmarshal(data,
                                connection=connection,
                                save_connection=save_connection)
        return group
 def _read(self, name, jsonfile):
     jf = open(jsonfile).read()
     data = json.loads(jf)
     data['group-name'] = name
     group = Group.unmarshal(data)
     return group
Beispiel #4
0
 def _read(self, name, jsonfile):
     jf = open(jsonfile).read()
     data = json.loads(jf)
     data['group-name'] = name
     group = Group.unmarshal(data)
     return group