Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-08 Thread Musayev, Ilya
Thanks Mirek I will try to polish it, your response is very helpful. Regards Ilya On Jun 8, 2012, at 4:57 AM, "Miroslav Suchý" wrote: > On 06/08/2012 12:32 AM, Musayev, Ilya wrote: >> The proof of concept code is below - if you could make any suggestions and >> improvements - it would be appr

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-08 Thread Cliff Perry
On 06/08/2012 04:55 AM, Miroslav Suchý wrote: On 06/08/2012 12:32 AM, Musayev, Ilya wrote: The proof of concept code is below - if you could make any suggestions and improvements - it would be appreciated. Instead of getSystemID(xml) you can use: from rhn import rpclib system_id = re.sub('^ID-

Re: [Spacewalk-devel] YUM RHN Lock Plugin

2012-06-08 Thread Miroslav Suchý
On 06/08/2012 12:32 AM, Musayev, Ilya wrote: The proof of concept code is below - if you could make any suggestions and improvements - it would be appreciated. Instead of getSystemID(xml) you can use: from rhn import rpclib system_id = re.sub('^ID-', '', rpclib.xmlrpclib.loads(up2dateAuth.g