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

Issue 6356070: Metadata editor idea. This is just a dirty sketch that shows how I want to make metaeditor work. (Closed)

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

Description

Metadata editor idea. This is just a dirty sketch that shows how I want to make metaeditor work.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Metadata forms cleanup #

Total comments: 3

Patch Set 3 : Added PTIME formatting and validation #

Total comments: 23

Patch Set 4 : Fixes in accordance with the code review comments #

Total comments: 1

Patch Set 5 : Fixes broken links 'Link to sumitem' and 'Transclude Subitem' #

Total comments: 2

Patch Set 6 : Edit metadata forms refactoring. Added redirect to the appropriate view according to view_method #

Total comments: 10

Patch Set 7 : Added some xiaq's proposals and fixes #

Total comments: 17

Patch Set 8 : Added macros-based meta editor #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -84 lines) Patch
M MoinMoin/apps/frontend/views.py View 1 2 3 4 5 6 7 3 chunks +15 lines, -5 lines 2 comments Download
M MoinMoin/constants/forms.py View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M MoinMoin/constants/keys.py View 1 2 3 4 5 6 7 1 chunk +11 lines, -4 lines 1 comment Download
M MoinMoin/forms.py View 1 2 3 4 5 6 7 3 chunks +115 lines, -5 lines 0 comments Download
M MoinMoin/items/__init__.py View 1 2 3 4 5 6 7 12 chunks +66 lines, -59 lines 0 comments Download
M MoinMoin/items/_tests/test_Item.py View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M MoinMoin/templates/common.js View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M MoinMoin/templates/forms.html View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M MoinMoin/templates/layout.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M MoinMoin/templates/modify_applet.html View 1 2 3 4 5 6 7 2 chunks +8 lines, -3 lines 0 comments Download
A MoinMoin/templates/modify_meta.html View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A MoinMoin/templates/modify_meta_blog.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A MoinMoin/templates/modify_meta_blog_entry.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M MoinMoin/themes/modernized/static/css/common.css View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20
Reimar Bauer
some comments http://codereview.appspot.com/6356070/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/1/MoinMoin/items/__init__.py#newcode662 MoinMoin/items/__init__.py:662: class ModifyJsonMetaForm(Form): ModifyMetaForm as it is json, ...
11 years, 10 months ago (2012-07-08 09:40:13 UTC) #1
spy
some explanations http://codereview.appspot.com/6356070/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/1/MoinMoin/items/__init__.py#newcode663 MoinMoin/items/__init__.py:663: meta_text = String.using(optional=False).with_properties(placeholder=L_("MetaData (JSON)")).validated_by(ValidJSON()) On 2012/07/08 09:40:13, ...
11 years, 10 months ago (2012-07-08 10:25:33 UTC) #2
Reimar Bauer
answered http://codereview.appspot.com/6356070/diff/1/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/1/MoinMoin/items/__init__.py#newcode678 MoinMoin/items/__init__.py:678: self[key] = item.meta[key] On 2012/07/08 10:25:34, spy wrote: ...
11 years, 10 months ago (2012-07-08 10:46:49 UTC) #3
Reimar Bauer
some comments http://codereview.appspot.com/6356070/diff/5001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/5001/MoinMoin/items/__init__.py#newcode655 MoinMoin/items/__init__.py:655: view_method_keys = [u'', BLOG_ENTRY, ] just added ...
11 years, 10 months ago (2012-07-10 07:41:09 UTC) #4
ThomasJWaldmann
some first comments, please also ask your mentor for review. http://codereview.appspot.com/6356070/diff/13002/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/13002/MoinMoin/items/__init__.py#newcode636 ...
11 years, 10 months ago (2012-07-11 13:12:25 UTC) #5
spy
some replies and fixes http://codereview.appspot.com/6356070/diff/13002/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/13002/MoinMoin/items/__init__.py#newcode636 MoinMoin/items/__init__.py:636: VIEW_METHOD, BLOG_ENTRY On 2012/07/11 13:12:25, ...
11 years, 10 months ago (2012-07-12 12:14:55 UTC) #6
Reimar Bauer
there was an older comment I missed to send A new question: Can we transclude ...
11 years, 10 months ago (2012-07-13 06:34:13 UTC) #7
spy
On 2012/07/13 06:34:13, Reimar Bauer wrote: > there was an older comment I missed to ...
11 years, 10 months ago (2012-07-13 07:12:16 UTC) #8
ThomasJWaldmann
http://codereview.appspot.com/6356070/diff/13002/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/13002/MoinMoin/items/__init__.py#newcode638 MoinMoin/items/__init__.py:638: class ModifyMetaForm(Form): yes, i meant xiaq. if you create ...
11 years, 10 months ago (2012-07-14 14:47:37 UTC) #9
xiaq
http://codereview.appspot.com/6356070/diff/36001/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6356070/diff/36001/MoinMoin/apps/frontend/views.py#newcode312 MoinMoin/apps/frontend/views.py:312: } Instead of patching into show_item, we might want ...
11 years, 10 months ago (2012-07-18 14:23:59 UTC) #10
Reimar Bauer
some comments http://codereview.appspot.com/6356070/diff/36001/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6356070/diff/36001/MoinMoin/forms.py#newcode27 MoinMoin/forms.py:27: from MoinMoin import log this import of ...
11 years, 10 months ago (2012-07-18 15:48:46 UTC) #11
Reimar Bauer
some comments http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py#newcode98 MoinMoin/forms.py:98: except: exception case missing http://codereview.appspot.com/6356070/diff/26011/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py ...
11 years, 10 months ago (2012-07-20 07:02:16 UTC) #12
spy
some replies http://codereview.appspot.com/6356070/diff/36001/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6356070/diff/36001/MoinMoin/forms.py#newcode27 MoinMoin/forms.py:27: from MoinMoin import log On 2012/07/18 15:48:46, ...
11 years, 10 months ago (2012-07-20 20:51:58 UTC) #13
Reimar Bauer
answered http://codereview.appspot.com/6356070/diff/26011/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/6356070/diff/26011/MoinMoin/items/__init__.py#newcode323 MoinMoin/items/__init__.py:323: """ kill metadata entries that we set automatically ...
11 years, 10 months ago (2012-07-21 07:28:23 UTC) #14
ThomasJWaldmann
http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py#newcode6 MoinMoin/forms.py:6: MoinMoin - Flatland widgets and modify metadata forms either ...
11 years, 10 months ago (2012-07-22 11:20:25 UTC) #15
spy
answered http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py#newcode6 MoinMoin/forms.py:6: MoinMoin - Flatland widgets and modify metadata forms ...
11 years, 10 months ago (2012-07-22 13:19:40 UTC) #16
Reimar Bauer
so far now, have to look in details later http://codereview.appspot.com/6356070/diff/42002/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6356070/diff/42002/MoinMoin/apps/frontend/views.py#newcode501 MoinMoin/apps/frontend/views.py:501: ...
11 years, 10 months ago (2012-07-23 12:24:27 UTC) #17
spy
done http://codereview.appspot.com/6356070/diff/42002/MoinMoin/apps/frontend/views.py File MoinMoin/apps/frontend/views.py (right): http://codereview.appspot.com/6356070/diff/42002/MoinMoin/apps/frontend/views.py#newcode501 MoinMoin/apps/frontend/views.py:501: item_name = item.name, On 2012/07/23 12:24:27, Reimar Bauer ...
11 years, 10 months ago (2012-07-23 15:56:27 UTC) #18
ThomasJWaldmann
found some issues, please fix. http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py File MoinMoin/forms.py (right): http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py#newcode98 MoinMoin/forms.py:98: except: ehrm, except: is ...
11 years, 9 months ago (2012-07-28 23:01:43 UTC) #19
Reimar Bauer
11 years, 9 months ago (2012-07-30 13:29:18 UTC) #20
http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py
File MoinMoin/forms.py (right):

http://codereview.appspot.com/6356070/diff/26011/MoinMoin/forms.py#newcode16
MoinMoin/forms.py:16: import simplejson as json
On 2012/07/22 11:20:25, ThomasJWaldmann wrote:
> we require python 2.6 for moin2, json is included there
> 
> did you see such code at another place in moin2 or why did you do it that way?

My fault, we have it like that on other places. Just search for simplejson
Sign in to reply to this message.

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