Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(461)

Delta Between Two Patch Sets: MoinMoin/storage/middleware/indexing.py

Issue 10761044: Add initial implementation of Comment itemtype.
Left Patch Set: Created 11 years, 10 months ago
Right Patch Set: Updates ModifyForm and templates. Created 11 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
(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
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)
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b