| 43 | """ |
| 44 | |
| 45 | def start(self, content): |
| 46 | # |
| 47 | # For soap encoded arrays, the 'aty' (array type) information |
| 48 | # is extracted and added to the 'content'. Then, the content.value |
| 49 | # is replaced with an object containing an 'item=[]' attribute |
| 50 | # containing values that are 'typed' suds objects. |
| 51 | # |
| 52 | start = Literal.start(self, content) |
| 53 | if start and isinstance(content.value, (list, tuple)): |
| 54 | resolved = content.type.resolve() |
| 55 | for c in resolved: |
| 56 | if hasattr(c[0], 'aty'): |
| 57 | content.aty = (content.tag, c[0].aty) |
| 58 | self.cast(content) |
| 59 | break |
| 60 | return start |
| 61 | |
| 62 | def end(self, parent, content): |
| 63 | # |