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

Issue 12560043: code for /+trash view

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by ashu1461
Modified:
12 years, 1 month ago
Reviewers:
thomas.j.waldmann
Visibility:
Public.

Description

Code for /+trash view. I am breaking the code into two parts:- 1) If an item is without names (AND not intentionally created/kept so, e.g. for threaded comment system, that uses nameless items), we set the TRASH flag to indicate that it is not needed any more. 2) Manual entry into trash view:- If we decide that we don't need an item any more, we even could set the TRASH flag without having all names removed first. This is the code for the first part.

Patch Set 1 #

Total comments: 9

Patch Set 2 : Changed layout for garbage view and fixed previous mistakes. #

Total comments: 11

Patch Set 3 : New code for trashed view. #

Total comments: 6

Patch Set 4 : Removed previous mistakes. #

Total comments: 2

Patch Set 5 : Updated trash test. #

Total comments: 2

Patch Set 6 : Added a unit test. #

Total comments: 4

Patch Set 7 : Modified as per comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -5 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M MoinMoin/items/__init__.py View 1 2 3 4 5 3 chunks +10 lines, -4 lines 0 comments Download
M MoinMoin/items/_tests/test_Item.py View 1 2 3 4 5 6 2 chunks +33 lines, -1 line 0 comments Download
A MoinMoin/templates/trash.html View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 13
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/12560043/diff/1/MoinMoin/apps/frontend/views.py#newcode836 MoinMoin/apps/frontend/views.py:836: title_name = _('Deleted Items') put that into the render_template ...
12 years, 1 month ago (2013-08-07 14:49:57 UTC) #1
ashu1461
https://codereview.appspot.com/12560043/diff/17001/MoinMoin/templates/garbage.html File MoinMoin/templates/garbage.html (right): https://codereview.appspot.com/12560043/diff/17001/MoinMoin/templates/garbage.html#newcode28 MoinMoin/templates/garbage.html:28: <td class="moin-wordbreak">{{ result.comment }}</td> This works. result.fqname would be ...
12 years, 1 month ago (2013-08-10 08:49:29 UTC) #2
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/17001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/12560043/diff/17001/MoinMoin/apps/frontend/views.py#newcode833 MoinMoin/apps/frontend/views.py:833: Returns the deleted items. Returns garbage items https://codereview.appspot.com/12560043/diff/17001/MoinMoin/apps/frontend/views.py#newcode838 MoinMoin/apps/frontend/views.py:838: ...
12 years, 1 month ago (2013-08-10 18:16:07 UTC) #3
ashu1461
https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py#newcode550 MoinMoin/items/__init__.py:550: The earlier method to find NAME_OLD does not work ...
12 years, 1 month ago (2013-08-12 16:49:57 UTC) #4
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py#newcode541 MoinMoin/items/__init__.py:541: meta[TRASHED] = True please explain. i already asked that ...
12 years, 1 month ago (2013-08-12 18:57:55 UTC) #5
ashu1461
https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py#newcode541 MoinMoin/items/__init__.py:541: meta[TRASHED] = True The earlier comments were for a ...
12 years, 1 month ago (2013-08-12 19:24:08 UTC) #6
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/28001/MoinMoin/items/__init__.py#newcode541 MoinMoin/items/__init__.py:541: meta[TRASHED] = True "...but there is no new comment ...
12 years, 1 month ago (2013-08-12 19:29:13 UTC) #7
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/40001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/40001/MoinMoin/items/__init__.py#newcode541 MoinMoin/items/__init__.py:541: # If the item is created initally with no ...
12 years, 1 month ago (2013-08-12 20:19:42 UTC) #8
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/46001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/46001/MoinMoin/items/__init__.py#newcode551 MoinMoin/items/__init__.py:551: meta[TRASH] = True looks better. unit tests?
12 years, 1 month ago (2013-08-13 21:33:15 UTC) #9
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/46001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): https://codereview.appspot.com/12560043/diff/46001/MoinMoin/items/__init__.py#newcode551 MoinMoin/items/__init__.py:551: meta[TRASH] = True you're inconsistent. at one place TRASH, ...
12 years, 1 month ago (2013-08-13 21:37:31 UTC) #10
Thomas.J.Waldmann
https://codereview.appspot.com/12560043/diff/51001/MoinMoin/items/_tests/test_Item.py File MoinMoin/items/_tests/test_Item.py (right): https://codereview.appspot.com/12560043/diff/51001/MoinMoin/items/_tests/test_Item.py#newcode376 MoinMoin/items/_tests/test_Item.py:376: fqname = u'trash_item_test' isn't it confusing if this is ...
12 years, 1 month ago (2013-08-15 16:22:46 UTC) #11
ashu1461
https://codereview.appspot.com/12560043/diff/51001/MoinMoin/items/_tests/test_Item.py File MoinMoin/items/_tests/test_Item.py (right): https://codereview.appspot.com/12560043/diff/51001/MoinMoin/items/_tests/test_Item.py#newcode376 MoinMoin/items/_tests/test_Item.py:376: fqname = u'trash_item_test' On 2013/08/15 16:22:46, Thomas.J.Waldmann wrote: > ...
12 years, 1 month ago (2013-08-15 16:55:40 UTC) #12
Thomas.J.Waldmann
12 years, 1 month ago (2013-08-16 20:42:27 UTC) #13

          
Sign in to reply to this message.

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