0002-sp_fr-add-alias-with-_1-suffix-to-cater-for-nodes-wi.patch
passerelle/apps/sp_fr/models.py | ||
---|---|---|
490 | 490 |
yield p, value |
491 | 491 |
else: |
492 | 492 |
yield path, text_content(node) |
493 |
# case of multiple nodes |
|
494 |
new_path = path[:-1] + [path[-1] + '_1'] |
|
495 |
yield new_path, text_content(node) |
|
493 | 496 |
return {'_'.join(path): value for path, value in helper([tag_name(root)], root)} |
494 | 497 | |
495 | 498 |
class Meta: |
496 |
- |