What steps will reproduce the problem?
1. Open feed like /base/feeds/snippets/-/products?max-results=10&start-
index=1&q=headlight and you can see item attributes like g:compatible_with
and some others with type="group"
2. Run code like with this feed
for entry in feed:
print i, entry.title.text
for attribute in entry.item_attributes:
print attribute.name+" "+attribute.type+" "+attribute.text )
3. You can't acess attribute.text and attribute child nodes for attributes
with type="group"
What is the expected output? What do you see instead?
In Google Base feeds items has an attribute with type="group" eg
<g:compatible_with type='group'>
<g:brand type='text'>Chevrolet</g:brand>
<g:mpn type='text'>K15001998</g:mpn>
<g:title type='text'>Headlight</g:title>
</g:compatible_with>
or
<g:shipping type='shipping'>
<g:country>US</g:country>
<g:service>Ground</g:service>
<g:price>0.0 usd</g:price>
</g:shipping>
but API don't allow access to child nodes as g:mpn or g:country
Please use labels and text to provide additional information.
Original issue reported on code.google.com by seriy...@gmail.com on 7 May 2010 at 12:01
Original issue reported on code.google.com by
seriy...@gmail.com
on 7 May 2010 at 12:01