[Pacemaker] [GUI]Compatibility issues of Python.

Yan Gao ygao at novell.com
Sat Oct 9 15:31:27 UTC 2010


Hi Hideo,

On 10/01/10 10:07, renayama19661014 at ybb.ne.jp wrote:
> 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?
It should work with python < 2.5 now:
http://hg.clusterlabs.org/pacemaker/pygui/rev/16a7d8a5d3eb

Regards,
  Yan
-- 
Yan Gao <ygao at novell.com>
Software Engineer
China Server Team, OPS Engineering, Novell, Inc.




More information about the Pacemaker mailing list