

@expose('/edit/', methods=['GET', 'POST'])
def edit_view(self):
    rlms_id = request.args.get('id')
    if (not rlms_id):
        return ('RLMS id not found', 404)
    rlms = self.session.query(RLMS).filter_by(id=rlms_id).first()
    if (not rlms):
        return ('RLMS not found', 404)
    config = json.loads(rlms.configuration)
    rlms_obj = RLMSObject()
    rlms_obj.name = rlms.name
    rlms_obj.url = rlms.url
    rlms_obj.location = rlms.location
    rlms_obj.publicly_available = rlms.publicly_available
    rlms_obj.public_identifier = rlms.public_identifier
    rlms_obj.default_autoload = rlms.default_autoload
    for key in rlms_id:
        setattr(rlms_obj, key, config[key])
    return self._add_or_edit(rlms.kind, rlms.version, False, rlms_obj, config)

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py RLMSPanel.edit_view/VarMisuse@157/238 `config`->`rlms_id`