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

Issue 12745048: Create notification messages (Closed)

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

Description

The notification mail message is built using the received information from the signal item_modified. The class is used primarily for encapsulating data.

Patch Set 1 #

Total comments: 14

Patch Set 2 : Unify bits of notification main message, use lists and generate correct urls #

Patch Set 3 : Refactor get_meta_diff() #

Patch Set 4 : Update tests #

Total comments: 2

Patch Set 5 : Fix indentation #

Patch Set 6 : Create send_notifications func and change the interface of render_templates func #

Total comments: 3

Patch Set 7 : Fix translatable strings #

Total comments: 1

Patch Set 8 : Use sets instead of lists #

Patch Set 9 : Encapsulate notification messages #

Total comments: 11

Patch Set 10 : Rearrange messages #

Patch Set 11 : Fix get 'action', change the usage of get_subscribers #

Patch Set 12 : Update get_content_diff and use io.StringIO #

Patch Set 13 : Update generate_diff_url method #

Total comments: 8

Patch Set 14 : Use BytesIO #

Patch Set 15 : Create Content obj, not Item #

Patch Set 16 : Remove striping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -0 lines) Patch
A MoinMoin/util/_tests/test_notifications.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +102 lines, -0 lines 0 comments Download
M MoinMoin/util/notifications.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +212 lines, -0 lines 0 comments Download

Messages

Total messages: 14
Thomas.J.Waldmann
https://codereview.appspot.com/12745048/diff/1/MoinMoin/util/_tests/test_notifications.py File MoinMoin/util/_tests/test_notifications.py (right): https://codereview.appspot.com/12745048/diff/1/MoinMoin/util/_tests/test_notifications.py#newcode50 MoinMoin/util/_tests/test_notifications.py:50: notification.revs = [rev2, rev1] this is dealing with the ...
11 years, 1 month ago (2013-08-19 21:41:10 UTC) #1
ana.balica
https://codereview.appspot.com/12745048/diff/1/MoinMoin/util/_tests/test_notifications.py File MoinMoin/util/_tests/test_notifications.py (right): https://codereview.appspot.com/12745048/diff/1/MoinMoin/util/_tests/test_notifications.py#newcode74 MoinMoin/util/_tests/test_notifications.py:74: assert notification.get_meta_diff() == dict_diff(dict(), rev1.meta._meta) On 2013/08/19 21:41:10, Thomas.J.Waldmann ...
11 years, 1 month ago (2013-08-21 14:03:26 UTC) #2
Thomas.J.Waldmann
https://codereview.appspot.com/12745048/diff/15002/MoinMoin/util/_tests/test_notifications.py File MoinMoin/util/_tests/test_notifications.py (right): https://codereview.appspot.com/12745048/diff/15002/MoinMoin/util/_tests/test_notifications.py#newcode59 MoinMoin/util/_tests/test_notifications.py:59: notification = Notification(app, self.item_name, [], content=item.content, action=DESTROY_REV) hmm, so ...
11 years, 1 month ago (2013-08-22 15:59:19 UTC) #3
ana.balica
https://codereview.appspot.com/12745048/diff/15002/MoinMoin/util/_tests/test_notifications.py File MoinMoin/util/_tests/test_notifications.py (right): https://codereview.appspot.com/12745048/diff/15002/MoinMoin/util/_tests/test_notifications.py#newcode59 MoinMoin/util/_tests/test_notifications.py:59: notification = Notification(app, self.item_name, [], content=item.content, action=DESTROY_REV) On 2013/08/22 ...
11 years, 1 month ago (2013-08-22 21:31:28 UTC) #4
waldi
https://codereview.appspot.com/12745048/diff/34001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/34001/MoinMoin/util/notifications.py#newcode66 MoinMoin/util/notifications.py:66: user_name=user_name), Use "**kw" to do the same multiple times. ...
11 years, 1 month ago (2013-09-01 13:47:22 UTC) #5
Thomas.J.Waldmann
https://codereview.appspot.com/12745048/diff/37001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/37001/MoinMoin/util/notifications.py#newcode87 MoinMoin/util/notifications.py:87: } can you try wether something like this works: ...
11 years, 1 month ago (2013-09-01 14:10:52 UTC) #6
Thomas.J.Waldmann
https://codereview.appspot.com/12745048/diff/44001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/44001/MoinMoin/util/notifications.py#newcode46 MoinMoin/util/notifications.py:46: "The '%(item_name)s' item on '%(wiki_name)s' has been created by ...
11 years ago (2013-09-02 09:48:19 UTC) #7
waldi
https://codereview.appspot.com/12745048/diff/44001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/44001/MoinMoin/util/notifications.py#newcode98 MoinMoin/util/notifications.py:98: if self.action in [DESTROY_REV, DESTROY_ALL, ]: Why list (again)? ...
11 years ago (2013-09-02 12:22:27 UTC) #8
ana.balica
https://codereview.appspot.com/12745048/diff/44001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/44001/MoinMoin/util/notifications.py#newcode98 MoinMoin/util/notifications.py:98: if self.action in [DESTROY_REV, DESTROY_ALL, ]: On 2013/09/02 12:22:28, ...
11 years ago (2013-09-02 15:22:30 UTC) #9
Thomas.J.Waldmann
yeah, maybe true, just was thinking about that it might be a little more efficient. ...
11 years ago (2013-09-02 17:15:03 UTC) #10
Thomas.J.Waldmann
11 years ago (2013-09-02 17:15:43 UTC) #11
Thomas.J.Waldmann
https://codereview.appspot.com/12745048/diff/64001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/64001/MoinMoin/util/notifications.py#newcode93 MoinMoin/util/notifications.py:93: oldfile, newfile = self.content, StringIO(u"") why StringIO ? self.content ...
11 years ago (2013-09-11 16:16:23 UTC) #12
ana.balica
https://codereview.appspot.com/12745048/diff/64001/MoinMoin/util/notifications.py File MoinMoin/util/notifications.py (right): https://codereview.appspot.com/12745048/diff/64001/MoinMoin/util/notifications.py#newcode94 MoinMoin/util/notifications.py:94: elif self.action == ACTION_TRASH: On 2013/09/11 16:16:24, Thomas.J.Waldmann wrote: ...
11 years ago (2013-09-13 16:23:57 UTC) #13
Thomas.J.Waldmann
11 years ago (2013-09-14 17:47:24 UTC) #14
looks better.
Sign in to reply to this message.

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