@@ -1434,21 +1434,23 @@ def _visit_assign_helper(self, node, target):
14341434 elif typedef and target .attr in typedef .properties and 'set' in typedef .properties [ target .attr ]:
14351435 setter = typedef .properties [ target .attr ]['set' ]
14361436 writer .write ( '%s( [%s, %s], JSObject() )' % (setter , target_value , self .visit (node .value )) )
1437- elif typedef and target .attr in typedef .class_attributes :
1438- writer .write ( '''%s['__class__']['%s'] = %s''' % (target_value , target .attr , self .visit (node .value )))
1437+
1438+ #elif typedef and target.attr in typedef.class_attributes:
1439+ # writer.write( '''%s['__class__']['%s'] = %s''' %(target_value, target.attr, self.visit(node.value)))
1440+
14391441 elif typedef and target .attr in typedef .attributes :
14401442 writer .write ( '%s.%s = %s' % (target_value , target .attr , self .visit (node .value )))
14411443
14421444 elif typedef and typedef .parents :
14431445 parent_prop = typedef .check_for_parent_with ( property = target .attr )
1444- parent_classattr = typedef .check_for_parent_with ( class_attribute = target .attr )
1446+ # parent_classattr = typedef.check_for_parent_with( class_attribute=target.attr )
14451447 parent_setattr = typedef .check_for_parent_with ( method = '__setattr__' )
14461448 if parent_prop and 'set' in parent_prop .properties [target .attr ]:
14471449 setter = parent_prop .properties [target .attr ]['set' ]
14481450 writer .write ( '%s( [%s, %s], JSObject() )' % (setter , target_value , self .visit (node .value )) )
14491451
1450- elif parent_classattr :
1451- writer .write ( "__%s_attrs.%s = %s" % (parent_classattr .name , target .attr , self .visit (node .value )) )
1452+ # elif parent_classattr:
1453+ # writer.write( "__%s_attrs.%s = %s" %(parent_classattr.name, target.attr, self.visit(node.value)) )
14521454
14531455 elif parent_setattr :
14541456 func = parent_setattr .get_pythonjs_function_name ( '__setattr__' )
0 commit comments