def _generate_python_value(self, namespace, value): if is_tag_ref(value): return '{}.{}.{}'.format( namespace.name, class_name_for_data_type(value.union_data_type), fmt_var(value.tag_name)) else: return fmt_obj(value)
def _generate_python_value(self, ns, value): if is_tag_ref(value): ref = '{}.{}'.format( class_name_for_data_type(value.union_data_type), fmt_var(value.tag_name)) if ns != value.union_data_type.namespace: ref = '%s.%s' % (value.union_data_type.namespace.name, ref) return ref else: return fmt_obj(value)