After I've loaded a layer from a table in my db I'd like to disable the 'Simplify geometry' (found in Layers/Properties/Rendering) programatically using Python. I've tried several versions of QgsVectorSimplifyMethod.SimplifyHint
current_layer = iface.mapCanvas().currentLayer()
if current_layer:
try:
current_layer.setSimplifyMethod(QgsVectorSimplifyMethod.setSimplifyHints(QgsVectorSimplifyMethod.SimplifyHint.NoSimplification))
catch Exception, e:
print e
but can't get the usage of QgsVectorSimplifyMethod.SimplifyHint.NoSimplification correct.