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 : > > 'Updated libc-client packages that fix a buffer overflow > issue are now\navailable.\n\nThis update has been rated as having > moderate security impact b

Re: replacing \n characters in a hash

2006-01-26 Thread Johhny
Hello All, thanks for your help. I got it working and learnt some more things which is always great. Your assitance has been very useful. Regards, Johhny -- http://mail.python.org/mailman/listinfo/python-list

Re: replacing \n characters in a hash

2006-01-26 Thread Johhny
Hello, In response to that the output is this : '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.' -- http://mail.python.org/mailman/listinfo/python-list

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 = > server.channel.software.list_err

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 errata_info['err

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 ha

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 = server.channel.software.list_errata(session,channel_label,start_date,end_date)

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

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 Respo

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 infor

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=== {'errata_