Append schema object's from B{s}ource list to the B{d}estination list while applying the filter. @param d: The destination list. @type d: list @param s: The source list. @type s: list @param filter: A filter that allows items to be appended.
(cls, d, s, filter=Filter())
| 69 | |
| 70 | @classmethod |
| 71 | def append(cls, d, s, filter=Filter()): |
| 72 | """ |
| 73 | Append schema object's from B{s}ource list to |
| 74 | the B{d}estination list while applying the filter. |
| 75 | @param d: The destination list. |
| 76 | @type d: list |
| 77 | @param s: The source list. |
| 78 | @type s: list |
| 79 | @param filter: A filter that allows items to be appended. |
| 80 | @type filter: L{Filter} |
| 81 | """ |
| 82 | for item in s: |
| 83 | if item in filter: |
| 84 | d.append(item) |
| 85 | |
| 86 | def __init__(self, schema, root): |
| 87 | """ |
no test coverage detected