LEFT | RIGHT |
(Both sides are equal) |
1 # Copyright: 2011 MoinMoin:RonnyPfannschmidt | 1 # Copyright: 2011 MoinMoin:RonnyPfannschmidt |
2 # Copyright: 2011 MoinMoin:ThomasWaldmann | 2 # Copyright: 2011 MoinMoin:ThomasWaldmann |
3 # Copyright: 2011 MoinMoin:MichaelMayorov | 3 # Copyright: 2011 MoinMoin:MichaelMayorov |
4 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details. | 4 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details. |
5 | 5 |
6 """ | 6 """ |
7 MoinMoin - indexing middleware | 7 MoinMoin - indexing middleware |
8 | 8 |
9 The backends and stores moin uses are rather simple, it is mostly just a | 9 The backends and stores moin uses are rather simple, it is mostly just a |
10 unsorted / unordered bunch of revisions (meta and data) with iteration. | 10 unsorted / unordered bunch of revisions (meta and data) with iteration. |
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 def __cmp__(self, other): | 1247 def __cmp__(self, other): |
1248 if self[REVID] == other[REVID]: | 1248 if self[REVID] == other[REVID]: |
1249 return 0 | 1249 return 0 |
1250 return cmp(self[MTIME], other[MTIME]) | 1250 return cmp(self[MTIME], other[MTIME]) |
1251 | 1251 |
1252 def __len__(self): | 1252 def __len__(self): |
1253 return 0 # XXX | 1253 return 0 # XXX |
1254 | 1254 |
1255 def __repr__(self): | 1255 def __repr__(self): |
1256 return "Meta _doc: {0!r} _meta: {1!r}".format(self._doc, self._meta) | 1256 return "Meta _doc: {0!r} _meta: {1!r}".format(self._doc, self._meta) |
LEFT | RIGHT |