@frappe.whitelist()
def make_width_property_setter(doc):
 if isinstance(doc, basestring):
  doc = json.loads(doc)
 if ((doc[u'doctype'] == u'Property Setter') and (doc[u'property'] == u'width')):
  frappe.get_doc(doc).insert(ignore_permissions=True)

@ frappe . whitelist ( ) def make_width_property_setter ( doc ) : if isinstance ( doc , basestring ) : doc = json . loads ( doc ) if ( ( doc [ u'doctype' ] == u'Property Setter' ) and ( doc [ u'property' ] == u'width' ) ) : frappe . get_doc ( doc ) . insert ( ignore_permissions = True )
set width property setter .