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

Issue 6429043: Metadata editor. (Closed)

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

Patch Set 1 #

Total comments: 12

Patch Set 2 : address mentioned issues. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -6 lines) Patch
M MoinMoin/app.py View 1 chunk +2 lines, -0 lines 0 comments Download
M MoinMoin/forms.py View 1 3 chunks +47 lines, -2 lines 3 comments Download
M MoinMoin/items/__init__.py View 1 4 chunks +17 lines, -4 lines 0 comments Download
M MoinMoin/templates/modify_applet.html View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5
spy
http://codereview.appspot.com/6429043/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6429043/diff/1/MoinMoin/items/__init__.py#newcode676 MoinMoin/items/__init__.py:676: extra_meta_text = OptionalMultilineText.using(label=L_("Extra MetaData (JSON)")).with_properties(rows=ROWS_META, cols=COLS).validated_by(ValidJSON()) Do we still ...
11 years, 10 months ago (2012-07-18 15:48:27 UTC) #1
ThomasJWaldmann
some minor comments http://codereview.appspot.com/6429043/diff/1/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6429043/diff/1/MoinMoin/forms.py#newcode77 MoinMoin/forms.py:77: class Reference(Select): docstring missing http://codereview.appspot.com/6429043/diff/1/MoinMoin/forms.py#newcode98 MoinMoin/forms.py:98: ...
11 years, 10 months ago (2012-07-18 16:09:25 UTC) #2
Reimar Bauer
some comments http://codereview.appspot.com/6429043/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6429043/diff/1/MoinMoin/items/__init__.py#newcode676 MoinMoin/items/__init__.py:676: extra_meta_text = OptionalMultilineText.using(label=L_("Extra MetaData (JSON)")).with_properties(rows=ROWS_META, cols=COLS).validated_by(ValidJSON()) On ...
11 years, 10 months ago (2012-07-18 16:27:38 UTC) #3
xiaq
http://codereview.appspot.com/6429043/diff/1/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6429043/diff/1/MoinMoin/forms.py#newcode77 MoinMoin/forms.py:77: class Reference(Select): On 2012/07/18 16:09:25, ThomasJWaldmann wrote: > docstring ...
11 years, 10 months ago (2012-07-19 16:37:26 UTC) #4
ThomasJWaldmann
11 years, 10 months ago (2012-07-22 12:42:34 UTC) #5
http://codereview.appspot.com/6429043/diff/1/MoinMoin/templates/modify_applet...
File MoinMoin/templates/modify_applet.html (right):

http://codereview.appspot.com/6429043/diff/1/MoinMoin/templates/modify_applet...
MoinMoin/templates/modify_applet.html:32: #}
hmm, but if implemented as ALTERNATIVES we either need a way to switch
dynamically between them WHILE editing or one would sometimes need 2 edits (e.g.
if the pretty metadata editor misses some field one needs to set, which is not
quite unlikely at the beginning).

http://codereview.appspot.com/6429043/diff/8001/MoinMoin/forms.py
File MoinMoin/forms.py (right):

http://codereview.appspot.com/6429043/diff/8001/MoinMoin/forms.py#newcode80
MoinMoin/forms.py:80: '''
please always use triple double-quotes.
of course triple single-quotes is also valid, but there is at least one vim
plugin out there that does not like '''.

http://codereview.appspot.com/6429043/diff/8001/MoinMoin/forms.py#newcode82
MoinMoin/forms.py:82: Results of a search query.
it it really another Item (as in item == set of revisions) or a revision or can
it be both and is basically just any UUID?

http://codereview.appspot.com/6429043/diff/8001/MoinMoin/forms.py#newcode101
MoinMoin/forms.py:101: # cheap so this is not needed?
well, maybe do not do premature optimizations, but rather if you really get
performance issues. doing some cache for the lifetime of a request seems
harmless, though, but in moin 1.9 we have memory issues due to longer term
caching.

btw, there is also flask-cache used in moin, see app.py.
Sign in to reply to this message.

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