Parent Directory | Revision Log | Patch
revision 1.1 by jlenton, Fri Aug 29 21:57:10 2003 UTC | revision 1.2 by jlenton, Fri Oct 17 17:51:19 2003 UTC | |
---|---|---|
# | Line 37 class Multi: | Line 37 class Multi: |
37 | d[i] = this | d[i] = this |
38 | return d | return d |
39 | ||
40 | def add_detail(self): | |
41 | print dir(self) | |
42 | ||
43 | ||
44 | class Detail(Multi): | class Detail(Multi): |
45 | _magic = ( "header", | _magic = ( "header", |
# | Line 52 class Detail(Multi): | Line 55 class Detail(Multi): |
55 | if not hasattr(self, i): | if not hasattr(self, i): |
56 | setattr(self, i, None) | setattr(self, i, None) |
57 | ||
58 | ||
59 | class Dentry(Multi): | class Dentry(Multi): |
60 | def __init__(self, d): | def __init__(self, d): |
61 | Multi.__init__(self, d) | Multi.__init__(self, d) |
# | Line 62 class Dentry(Multi): | Line 66 class Dentry(Multi): |
66 | ||
67 | def add_row(self, **kw): | def add_row(self, **kw): |
68 | self._rows.append(kw.copy()) | self._rows.append(kw.copy()) |
69 | return self | |
70 | ||
71 | def data(self): | def data(self): |
72 | return self._rows or [{}] | return self._rows or [{}] |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |