| 1010 | return attrs |
| 1011 | |
| 1012 | def spilldata(msg, attrs, predicate): |
| 1013 | ok, attrs = _split_list(attrs, predicate) |
| 1014 | if ok: |
| 1015 | hr.maybe() |
| 1016 | push(msg) |
| 1017 | for name, kind, homecls, value in ok: |
| 1018 | base = self.docother(getattr(object, name), name, mod) |
| 1019 | doc = getdoc(value) |
| 1020 | if not doc: |
| 1021 | push('<dl><dt>%s</dl>\n' % base) |
| 1022 | else: |
| 1023 | doc = self.markup(getdoc(value), self.preformat, |
| 1024 | funcs, classes, mdict) |
| 1025 | doc = '<dd><span class="code">%s</span>' % doc |
| 1026 | push('<dl><dt>%s%s</dl>\n' % (base, doc)) |
| 1027 | push('\n') |
| 1028 | return attrs |
| 1029 | |
| 1030 | attrs = [(name, kind, cls, value) |
| 1031 | for name, kind, cls, value in classify_class_attrs(object) |