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

Issue 10973043: Support for multiple names in Revert view

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

Description

Support for multiple names in Revert view Plus we should have a validation function here to check whether the old names (names that the previous rev had), have not been taken by some other item. eg create a item (item1) with name [mommy, daddy] (rev0) rename it to [mommy] (rev1) create another item (item2) with name [daddy]. XXX cannot revert rev1 back to rev2 as 'daddy' is already taken by item2.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Removed killing of names. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 4 chunks +25 lines, -4 lines 2 comments Download
M MoinMoin/templates/revert.html View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7
ashu1461
https://codereview.appspot.com/10973043/diff/1/MoinMoin/templates/revert.html File MoinMoin/templates/revert.html (right): https://codereview.appspot.com/10973043/diff/1/MoinMoin/templates/revert.html#newcode4 MoinMoin/templates/revert.html:4: <h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s, names '%(new_names)s') ", item_name=fqname ...
10 years, 10 months ago (2013-07-10 12:04:56 UTC) #1
Thomas.J.Waldmann
https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py#newcode521 MoinMoin/apps/frontend/views.py:521: invalid_name_msg = '' ? https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py#newcode528 MoinMoin/apps/frontend/views.py:528: names = set(prev_meta[NAME]) ...
10 years, 10 months ago (2013-07-10 14:57:39 UTC) #2
ashu1461
https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py#newcode521 MoinMoin/apps/frontend/views.py:521: invalid_name_msg = '' On 2013/07/10 14:57:40, Thomas.J.Waldmann wrote: > ...
10 years, 10 months ago (2013-07-10 18:40:55 UTC) #3
Thomas.J.Waldmann
https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py#newcode528 MoinMoin/apps/frontend/views.py:528: names = set(prev_meta[NAME]) - set(current_meta[NAME]) > In case the ...
10 years, 10 months ago (2013-07-11 23:35:44 UTC) #4
ashu1461
https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py#newcode528 MoinMoin/apps/frontend/views.py:528: names = set(prev_meta[NAME]) - set(current_meta[NAME]) On 2013/07/11 23:35:44, Thomas.J.Waldmann ...
10 years, 10 months ago (2013-07-12 18:56:37 UTC) #5
Thomas.J.Waldmann
https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): https://codereview.appspot.com/10973043/diff/1/MoinMoin/apps/frontend/views.py#newcode528 MoinMoin/apps/frontend/views.py:528: names = set(prev_meta[NAME]) - set(current_meta[NAME]) i don't think we ...
10 years, 10 months ago (2013-07-13 15:54:44 UTC) #6
Thomas.J.Waldmann
10 years, 10 months ago (2013-07-13 23:52:42 UTC) #7
https://codereview.appspot.com/10973043/diff/11001/MoinMoin/apps/frontend/vie...
File MoinMoin/apps/frontend/views.py (right):

https://codereview.appspot.com/10973043/diff/11001/MoinMoin/apps/frontend/vie...
MoinMoin/apps/frontend/views.py:532: return True
you could move this upwards into the try block to make it easier.

https://codereview.appspot.com/10973043/diff/11001/MoinMoin/apps/frontend/vie...
MoinMoin/apps/frontend/views.py:568: state = dict(fqname=item.fqname,
itemid=item.meta.get(ITEMID), meta=dict(item.meta))
if you access it via ITEMID (see 528), you need to use ITEMID here also, as a
constant, not as hardcoded name.
Sign in to reply to this message.

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