replacing \n characters in a hash

2006-01-26 Thread Johhny
Hello, I am currently trying to write some scripts to get information from the xmlrpc for redhat network. One of the issues I am having is trying to strip off the special characters in the hash that is returned. Here is an example of the information returned within the hash : ===SNIP===

Re: replacing \n characters in a hash

2006-01-26 Thread Carsten Haese
On Thu, 2006-01-26 at 09:24, Johhny wrote: Hello, I am currently trying to write some scripts to get information from the xmlrpc for redhat network. One of the issues I am having is trying to strip off the special characters in the hash that is returned. Here is an example of the

Re: replacing \n characters in a hash

2006-01-26 Thread Johhny
Hello, Thankyou for your response, If I check that the errara_package value is with a print I get the following. ===SNIP=== Updated libc-client packages that fix a buffer overflow issue are now available. This update has been rated as having moderate security impact by the Red Hat Security

Re: replacing \n characters in a hash

2006-01-26 Thread Carsten Haese
On Thu, 2006-01-26 at 09:49, Johhny wrote: Hello, Thankyou for your response, If I check that the errara_package value is with a print I get the following. ===SNIP=== Updated libc-client packages that fix a buffer overflow issue are now available. This update has been rated as having

Re: replacing \n characters in a hash

2006-01-26 Thread Johhny
Hello, Here is the code (minus my details section). server = xmlrpclib.ServerProxy(url) session = server.auth.login(username,password) #functions. def getErrata(): channel_label = 'rhel-i386-as-4' errata =

Re: replacing \n characters in a hash

2006-01-26 Thread Larry Bates
Johhny wrote: Hello, I am currently trying to write some scripts to get information from the xmlrpc for redhat network. One of the issues I am having is trying to strip off the special characters in the hash that is returned. Here is an example of the information returned within the hash :

Re: replacing \n characters in a hash

2006-01-26 Thread Fredrik Lundh
Johhny wrote: for vals in errata: print %s\t\t%s\t\t%s\t%s\t%s % (vals['errata_advisory'],vals['errata_issue_date'],vals['errata_update_date'],vals['errata_last_modified_date'],vals['errata_type'], ) errata_info = getPackage(vals['errata_advisory'],) print

Re: replacing \n characters in a hash

2006-01-26 Thread Steve Holden
Johhny wrote: Hello, Here is the code (minus my details section). server = xmlrpclib.ServerProxy(url) session = server.auth.login(username,password) #functions. def getErrata(): channel_label = 'rhel-i386-as-4' errata =

Re: replacing \n characters in a hash

2006-01-26 Thread Johhny
Hello, In response to that the output is this : type 'str' 'Updated libc-client packages that fix a buffer overflow issue are now\navailable.\n\nThis update has been rated as having moderate security impact by the Red\nHat Security Response Team.' --

Re: replacing \n characters in a hash

2006-01-26 Thread Fredrik Lundh
(since this is a newsgroup, can you please quote the message you're replying to). Johhny wrote: In response to that the output is this : type 'str' 'Updated libc-client packages that fix a buffer overflow issue are now\navailable.\n\nThis update has been rated as having moderate security