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

Issue 6453060: Registry improvements (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by xiaq
Modified:
11 years, 9 months ago
Reviewers:
thomas.j.waldmann, Reimar Bauer, waldi
Visibility:
Public.

Description

Registry improvements

Patch Set 1 #

Total comments: 7

Patch Set 2 : Alter a few comments, changed several __call__ signatures, add missing @register for NonExistent #

Total comments: 11

Patch Set 3 : Fix spacing, remove auto_parenthesis, converter registry #

Total comments: 12

Patch Set 4 : remove decorators #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -115 lines) Patch
M MoinMoin/converter/__init__.py View 1 2 3 2 chunks +6 lines, -31 lines 0 comments Download
M MoinMoin/items/__init__.py View 1 2 3 4 chunks +11 lines, -32 lines 0 comments Download
M MoinMoin/items/content.py View 1 2 3 3 chunks +17 lines, -37 lines 0 comments Download
M MoinMoin/util/registry.py View 3 chunks +7 lines, -15 lines 0 comments Download

Messages

Total messages: 9
xiaq
See my comments in the files :) http://codereview.appspot.com/6453060/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6453060/diff/1/MoinMoin/items/__init__.py#newcode83 MoinMoin/items/__init__.py:83: return self.priority ...
11 years, 9 months ago (2012-07-29 04:30:07 UTC) #1
ThomasJWaldmann
nice cleanup. some minor comments about consistent spacing. and think about whether that auto_parenthesis stuff ...
11 years, 9 months ago (2012-07-29 12:22:31 UTC) #2
xiaq
http://codereview.appspot.com/6453060/diff/6001/MoinMoin/items/content.py File MoinMoin/items/content.py (right): http://codereview.appspot.com/6453060/diff/6001/MoinMoin/items/content.py#newcode255 MoinMoin/items/content.py:255: On 2012/07/29 12:22:31, ThomasJWaldmann wrote: > remove empty line ...
11 years, 9 months ago (2012-07-29 14:16:35 UTC) #3
xiaq
http://codereview.appspot.com/6453060/diff/6001/MoinMoin/util/decorator.py File MoinMoin/util/decorator.py (right): http://codereview.appspot.com/6453060/diff/6001/MoinMoin/util/decorator.py#newcode16 MoinMoin/util/decorator.py:16: that @wrapped with no parameter list is equivalent to ...
11 years, 9 months ago (2012-07-29 14:18:06 UTC) #4
xiaq
http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py File MoinMoin/converter/__init__.py (right): http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py#newcode46 MoinMoin/converter/__init__.py:46: # TODO Maybe make this a decorator factory, as ...
11 years, 9 months ago (2012-07-30 03:37:15 UTC) #5
xiaq
http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py File MoinMoin/converter/__init__.py (right): http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py#newcode46 MoinMoin/converter/__init__.py:46: # TODO Maybe make this a decorator factory, as ...
11 years, 9 months ago (2012-07-31 02:27:48 UTC) #6
waldi
http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py File MoinMoin/converter/__init__.py (left): http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py#oldcode65 MoinMoin/converter/__init__.py:65: def get(self, type_input, type_output, **kw): Why? http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py File MoinMoin/converter/__init__.py ...
11 years, 9 months ago (2012-07-31 09:09:35 UTC) #7
xiaq
http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py File MoinMoin/converter/__init__.py (left): http://codereview.appspot.com/6453060/diff/11001/MoinMoin/converter/__init__.py#oldcode65 MoinMoin/converter/__init__.py:65: def get(self, type_input, type_output, **kw): On 2012/07/31 09:09:35, waldi ...
11 years, 9 months ago (2012-07-31 12:12:48 UTC) #8
xiaq
11 years, 9 months ago (2012-07-31 16:10:49 UTC) #9
I've removed the decorators due to waldi's request to keep the patch clean.

Also i'm holding back the decorator idea a bit since it's nontrivial to convert
the Converter's to use decorators, and having items and items.content registries
use decorators but converters not introduces inconsistency.
Sign in to reply to this message.

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