def _do_update(self, session, obj, existing_obj):
    obj.lastModified = clock.CLOCK.now()
    obj.version = (existing_obj.version + 1)
    obj.created = existing_obj.created
    resource_json = json.loads(obj.resource)
    resource_json['id'] = str(obj.questionnaireId)
    obj.semanticVersion = resource_json['version']
    obj.resource = json.dumps(resource_json)
    super(QuestionnaireDao, self)._do_update(session, obj, existing_obj)
def _do_update(self, session, obj, existing_obj):
    obj.lastModified = clock.CLOCK.now()
    obj.version = (existing_obj.version + 1)
    obj.created = existing_obj.created
    resource_json = json.loads(obj.resource)
    resource_json['id'] = str(obj.questionnaireId)
    obj.semanticVersion = resource_json['version']
    obj.resource = json.dumps(resource_json)
    super(QuestionnaireDao, self)._do_update(session, obj, existing_obj)