| 88 | | authors = getattr(d, attr, None) |
| 89 | | if isinstance(authors, amazon.Bag): |
| 90 | | authors = getattr(authors, attr[:-1], None) |
| 91 | | if isinstance(authors, list): # リストの場合 |
| 92 | | for a in authors: |
| 93 | | print ' %s' % a |
| 94 | | elif authors is not None: # リストでも None でもない場合は str と仮定 |
| 95 | | print ' %s' % authors |
| | 87 | for d in data: |
| | 88 | authors = getattr(d, attr, None) |
| | 89 | if isinstance(authors, amazon.Bag): |
| | 90 | authors = getattr(authors, attr[:-1], None) |
| | 91 | if isinstance(authors, list): # リストの場合 |
| | 92 | for a in authors: |
| | 93 | print ' %s' % a |
| | 94 | elif authors is not None: # リストでも None でもない場合は str と仮定 |
| | 95 | print ' %s' % authors |