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

Issue 10599043: Fixes resizing of transclusions

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by sharky93
Modified:
10 years, 10 months ago
Reviewers:
thomas.j.waldmann, ReimarBauer, waldi, TheSheep
Visibility:
Public.

Description

Fixes resizing of transclusions

Patch Set 1 : Test cr to verify the method #

Patch Set 2 : Fixes resizing with transclusions #

Total comments: 17

Patch Set 3 : More pythonic, some fixes, more defensive #

Total comments: 12

Patch Set 4 : Fix for passing attributes everytime, more pythonic #

Total comments: 5

Patch Set 5 : Fix for some ugly things #

Total comments: 21

Patch Set 6 : Fixes for argument passing, html ns used #

Total comments: 5

Patch Set 7 : More improvements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -12 lines) Patch
M MoinMoin/converter/_args_wiki.py View 1 chunk +1 line, -1 line 0 comments Download
M MoinMoin/converter/html_out.py View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M MoinMoin/converter/image_in.py View 1 2 3 4 5 6 2 chunks +17 lines, -4 lines 0 comments Download
M MoinMoin/converter/include.py View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M MoinMoin/converter/moinwiki_in.py View 1 2 3 4 5 6 2 chunks +16 lines, -4 lines 0 comments Download
M MoinMoin/items/content.py View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16
ReimarBauer
some comments https://codereview.appspot.com/10599043/diff/16002/MoinMoin/converter/image_in.py File MoinMoin/converter/image_in.py (right): https://codereview.appspot.com/10599043/diff/16002/MoinMoin/converter/image_in.py#newcode17 MoinMoin/converter/image_in.py:17: import urlparse that import should be on ...
10 years, 10 months ago (2013-06-26 20:38:44 UTC) #1
TheSheep
https://codereview.appspot.com/10599043/diff/16002/MoinMoin/converter/html_out.py File MoinMoin/converter/html_out.py (right): https://codereview.appspot.com/10599043/diff/16002/MoinMoin/converter/html_out.py#newcode358 MoinMoin/converter/html_out.py:358: attrib[html.height] = elem.get(xlink.height) attrib_whitelist = { xlink.width: html.width, xlink.height: ...
10 years, 10 months ago (2013-06-26 20:50:02 UTC) #2
sharky93
Added replies. All changes fixed in Patch Set 3. https://codereview.appspot.com/10599043/diff/16002/MoinMoin/converter/html_out.py File MoinMoin/converter/html_out.py (right): https://codereview.appspot.com/10599043/diff/16002/MoinMoin/converter/html_out.py#newcode358 MoinMoin/converter/html_out.py:358: ...
10 years, 10 months ago (2013-06-26 23:28:37 UTC) #3
sharky93
https://codereview.appspot.com/10599043/diff/16002/MoinMoin/items/content.py File MoinMoin/items/content.py (right): https://codereview.appspot.com/10599043/diff/16002/MoinMoin/items/content.py#newcode207 MoinMoin/items/content.py:207: doc = input_conv(self.rev, self.contenttype, elem=elem) Maybe check line 144, ...
10 years, 10 months ago (2013-06-26 23:31:39 UTC) #4
TheSheep
https://codereview.appspot.com/10599043/diff/16002/MoinMoin/items/content.py File MoinMoin/items/content.py (right): https://codereview.appspot.com/10599043/diff/16002/MoinMoin/items/content.py#newcode207 MoinMoin/items/content.py:207: doc = input_conv(self.rev, self.contenttype, elem=elem) Yes, it's using them ...
10 years, 10 months ago (2013-06-27 07:03:02 UTC) #5
TheSheep
https://codereview.appspot.com/10599043/diff/35001/MoinMoin/converter/html_out.py File MoinMoin/converter/html_out.py (right): https://codereview.appspot.com/10599043/diff/35001/MoinMoin/converter/html_out.py#newcode360 MoinMoin/converter/html_out.py:360: if elem.get(orig) is not None: if orig in elem: ...
10 years, 10 months ago (2013-06-27 07:11:08 UTC) #6
sharky93
Fix for passing attributes everytime, more pythonic. I'm currently looking up for other converters, they ...
10 years, 10 months ago (2013-06-27 13:58:50 UTC) #7
TheSheep
https://codereview.appspot.com/10599043/diff/50001/MoinMoin/converter/image_in.py File MoinMoin/converter/image_in.py (right): https://codereview.appspot.com/10599043/diff/50001/MoinMoin/converter/image_in.py#newcode40 MoinMoin/converter/image_in.py:40: if attr.has_key(orig.name): use in instead of has_key
10 years, 10 months ago (2013-06-28 13:03:30 UTC) #8
TheSheep
https://codereview.appspot.com/10599043/diff/50001/MoinMoin/converter/image_in.py File MoinMoin/converter/image_in.py (right): https://codereview.appspot.com/10599043/diff/50001/MoinMoin/converter/image_in.py#newcode33 MoinMoin/converter/image_in.py:33: actual_query = '' query https://codereview.appspot.com/10599043/diff/50001/MoinMoin/converter/image_in.py#newcode41 MoinMoin/converter/image_in.py:41: attr[orig.name] = new ...
10 years, 10 months ago (2013-06-28 14:07:30 UTC) #9
Thomas.J.Waldmann
https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/html_out.py File MoinMoin/converter/html_out.py (right): https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/html_out.py#newcode360 MoinMoin/converter/html_out.py:360: if orig in elem.attrib and elem.get(orig): are you expecting ...
10 years, 10 months ago (2013-06-28 14:57:24 UTC) #10
sharky93
Added replies to all comments. https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/html_out.py File MoinMoin/converter/html_out.py (right): https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/html_out.py#newcode360 MoinMoin/converter/html_out.py:360: if orig in elem.attrib ...
10 years, 10 months ago (2013-06-28 15:26:27 UTC) #11
sharky93
https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/image_in.py File MoinMoin/converter/image_in.py (right): https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/image_in.py#newcode43 MoinMoin/converter/image_in.py:43: attr['query'] = arguments.get(xinclude.href).query Is calculating "arguments.get(xinclude.href).query" prior to check ...
10 years, 10 months ago (2013-06-28 15:29:39 UTC) #12
waldi
https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/moinwiki_in.py File MoinMoin/converter/moinwiki_in.py (right): https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/moinwiki_in.py#newcode855 MoinMoin/converter/moinwiki_in.py:855: xinclude.height : actual_attr.get('height'), Please quote the xinclude spec for ...
10 years, 10 months ago (2013-06-29 14:14:25 UTC) #13
sharky93
Added reply for change to parse_block. https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/moinwiki_in.py File MoinMoin/converter/moinwiki_in.py (right): https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/moinwiki_in.py#newcode1038 MoinMoin/converter/moinwiki_in.py:1038: if arguments and ...
10 years, 10 months ago (2013-06-29 15:24:23 UTC) #14
waldi
https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/moinwiki_in.py File MoinMoin/converter/moinwiki_in.py (right): https://codereview.appspot.com/10599043/diff/62001/MoinMoin/converter/moinwiki_in.py#newcode1038 MoinMoin/converter/moinwiki_in.py:1038: if arguments and hasattr(arguments, 'keyword'): On 2013/06/29 15:24:24, sharky93 ...
10 years, 10 months ago (2013-06-29 15:30:20 UTC) #15
TheSheep
10 years, 10 months ago (2013-06-29 18:53:19 UTC) #16
https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/image_i...
File MoinMoin/converter/image_in.py (right):

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/image_i...
MoinMoin/converter/image_in.py:37: }
why did you put query in here? it doesn't seem to belong

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/image_i...
MoinMoin/converter/image_in.py:42: attr['query'] =
arguments.keyword.get(xinclude.href).query or ''
why do you repeat that in the loop?

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/include.py
File MoinMoin/converter/include.py (right):

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/include...
MoinMoin/converter/include.py:342: page_doc =
page.content.internal_representation(attributes=Arguments(keyword =
elem.attrib))
no spaces around =

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/moinwik...
File MoinMoin/converter/moinwiki_in.py (right):

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/moinwik...
MoinMoin/converter/moinwiki_in.py:856: }
how about just using attrib all along instead of actual_attrs, and doing
attrib[xinclude.href] = target here?

https://codereview.appspot.com/10599043/diff/82001/MoinMoin/converter/moinwik...
MoinMoin/converter/moinwiki_in.py:867: }
ditto
Sign in to reply to this message.

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