[Pacemaker] [GUI]Compatibility issues of Python.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Thu Sep 30 22:07:39 EDT 2010


Hi Yan,

I operated latest GUI for Japanization of GUI. 
However, on RHEL5.5, GUI causes an error by the operation of the resource.

There seems to be a cause in the difference of the version of Python.

(snip)
	def on_rsc_action(self, action) :
		(cur_type, cur_name) = self.manage_tree.get_selected_node()
		if action.get_name() == "startrsc" :
			target_role = "Started"
		elif action.get_name() == "stoprsc" :
			target_role = "Stopped"
		else :
			target_role = "#default"

		if validate_type == "dtd" :
			metaattr_name = "target_role"
		else :
			metaattr_name = "target-role"

		real_rsc_id = cur_name.partition(":")[0]

(snip)


The function of partition seems not to be supported with 2.4 of Python.

On RHEL5.5, the version of Python is 2.4. 
For compatibility, will you change this processing?

Best Regards,
Hideo Yamauchi.





More information about the Pacemaker mailing list