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

Issue 10761044: Add initial implementation of Comment itemtype.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by spy
Modified:
10 years, 9 months ago
Reviewers:
thomas.j.waldmann, ReimarBauer
Visibility:
Public.

Description

Add initial implementation of Comment itemtype. There is no convenient form to add a new comment yet (it could be created the same way as any other wiki item). No styles. !!!ATTENTION: Patch Set 3: please check only the following: * items/comment.py * templates/comment/utils.html

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move a comment item instantiation to the template (+unittest). #

Total comments: 1

Patch Set 3 : Updates ModifyForm and templates. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -5 lines) Patch
M MoinMoin/constants/itemtypes.py View 1 chunk +1 line, -0 lines 0 comments Download
M MoinMoin/constants/keys.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M MoinMoin/items/__init__.py View 1 2 3 chunks +22 lines, -3 lines 1 comment Download
M MoinMoin/items/_tests/test_Item.py View 1 2 2 chunks +46 lines, -2 lines 0 comments Download
A MoinMoin/items/comment.py View 1 2 1 chunk +39 lines, -0 lines 2 comments Download
M MoinMoin/storage/middleware/indexing.py View 1 chunk +6 lines, -0 lines 0 comments Download
A MoinMoin/templates/comment/modify_meta.html View 1 chunk +18 lines, -0 lines 0 comments Download
A MoinMoin/templates/comment/utils.html View 1 2 1 chunk +24 lines, -0 lines 2 comments Download
M MoinMoin/themes/__init__.py View 1 1 chunk +3 lines, -0 lines 0 comments Download
M MoinMoin/themes/foobar/templates/show.html View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Thomas.J.Waldmann
https://codereview.appspot.com/10761044/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/10761044/diff/1/MoinMoin/items/__init__.py#newcode693 MoinMoin/items/__init__.py:693: comment_items = [Item.create(rev.name) for rev in revs] as a ...
10 years, 10 months ago (2013-06-28 22:45:30 UTC) #1
Thomas.J.Waldmann
ok https://codereview.appspot.com/10761044/diff/10001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/10761044/diff/10001/MoinMoin/items/__init__.py#newcode687 MoinMoin/items/__init__.py:687: Term(COMMENT_FOR, self.meta[ITEMID]), somehow itemtype comment and comment_for are ...
10 years, 10 months ago (2013-07-15 22:27:10 UTC) #2
spy
On 2013/07/15 22:27:10, Thomas.J.Waldmann wrote: > ok > > https://codereview.appspot.com/10761044/diff/10001/MoinMoin/items/__init__.py > File MoinMoin/items/__init__.py (right): > ...
10 years, 10 months ago (2013-07-26 17:34:42 UTC) #3
ReimarBauer
a question added https://codereview.appspot.com/10761044/diff/24001/MoinMoin/items/comment.py File MoinMoin/items/comment.py (right): https://codereview.appspot.com/10761044/diff/24001/MoinMoin/items/comment.py#newcode23 MoinMoin/items/comment.py:23: ((unicode(Type(e.content_type, parameters=e.default_contenttype_params)), e.display_name) why explicitly unicode ...
10 years, 9 months ago (2013-07-27 11:55:18 UTC) #4
spy
answered https://codereview.appspot.com/10761044/diff/24001/MoinMoin/items/comment.py File MoinMoin/items/comment.py (right): https://codereview.appspot.com/10761044/diff/24001/MoinMoin/items/comment.py#newcode23 MoinMoin/items/comment.py:23: ((unicode(Type(e.content_type, parameters=e.default_contenttype_params)), e.display_name) On 2013/07/27 11:55:18, ReimarBauer wrote: ...
10 years, 9 months ago (2013-07-28 15:08:48 UTC) #5
ReimarBauer
a question about a comment https://codereview.appspot.com/10761044/diff/24001/MoinMoin/templates/comment/utils.html File MoinMoin/templates/comment/utils.html (right): https://codereview.appspot.com/10761044/diff/24001/MoinMoin/templates/comment/utils.html#newcode3 MoinMoin/templates/comment/utils.html:3: {# TODO: check the ...
10 years, 9 months ago (2013-07-28 17:42:46 UTC) #6
Thomas.J.Waldmann
10 years, 9 months ago (2013-07-29 22:48:58 UTC) #7
https://codereview.appspot.com/10761044/diff/24001/MoinMoin/items/__init__.py
File MoinMoin/items/__init__.py (right):

https://codereview.appspot.com/10761044/diff/24001/MoinMoin/items/__init__.py...
MoinMoin/items/__init__.py:402: update_meta = {key:value for key, value in
update_meta.items() if value is not None}
key: value

pep8

https://codereview.appspot.com/10761044/diff/24001/MoinMoin/templates/comment...
File MoinMoin/templates/comment/utils.html (right):

https://codereview.appspot.com/10761044/diff/24001/MoinMoin/templates/comment...
MoinMoin/templates/comment/utils.html:3: {# TODO: check the item isn't
nonexistent #}
yeah, please fix.
Sign in to reply to this message.

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