https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/_tests/test_subscriptions.py#newcode60 MoinMoin/util/_tests/test_subscriptions.py:60: assert expected_name in subscribers_names shouldn't it be even [expected_name] ...
11 years, 8 months ago
(2013-07-17 13:48:34 UTC)
#3
11 years, 8 months ago
(2013-07-17 15:17:44 UTC)
#4
https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/subscription...
File MoinMoin/util/subscriptions.py (right):
https://codereview.appspot.com/10950045/diff/19001/MoinMoin/util/subscription...
MoinMoin/util/subscriptions.py:50: def extract_users_info(user_items):
On 2013/07/17 13:48:35, Thomas.J.Waldmann wrote:
> check if you call this more than once.
>
> if not: is 1 line of rather trivial code enough justify an own function?
The function is called twice. But I am going to change get_subscribers() such as
to be called only once and therefore due to the only usage, function
extract_users_info() will be no longer be needed.
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode67 MoinMoin/util/subscriptions.py:67: pattern = re.compile(r'{0}'.format(pattern)) The user input will pass through ...
11 years, 8 months ago
(2013-07-19 13:07:56 UTC)
#8
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py File MoinMoin/util/subscriptions.py (right): https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscriptions.py#newcode45 MoinMoin/util/subscriptions.py:45: for user in chain.from_iterable(result_iterators)} looks much less complicated now ...
11 years, 8 months ago
(2013-07-20 12:29:31 UTC)
#9
11 years, 8 months ago
(2013-07-20 12:35:23 UTC)
#10
On 2013/07/19 13:07:56, ana.balica wrote:
>
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscription...
> File MoinMoin/util/subscriptions.py (right):
>
>
https://codereview.appspot.com/10950045/diff/41001/MoinMoin/util/subscription...
> MoinMoin/util/subscriptions.py:67: pattern =
re.compile(r'{0}'.format(pattern))
> The user input will pass through validation and the validator's task is to
catch
> the exception. I am not sure, but I think the only way user input can surpass
> that step is to edit manually the metadata in the filesystem.
Please show proof that a regex that worked once (aka in the validator) will work
_any_ time in the future. This includes bugs in the lexer, differences between
python versions and maybe also overrun stack. (Hint: you can't.)
Issue 10950045: Determining subscribers
(Closed)
Created 11 years, 9 months ago by ana.balica
Modified 11 years, 8 months ago
Reviewers: waldi, thomas.j.waldmann_gmail.com
Base URL:
Comments: 30