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

Issue 99560043: Passed function as parameter(gives error) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by sksaurabhkathpalia
Modified:
9 years, 11 months ago
Reviewers:
thomas.j.waldmann, dimazest, RogerHaase
Visibility:
Public.

Description

Passed function as parameter(gives error)

Patch Set 1 #

Total comments: 5

Patch Set 2 : removed a small error #

Total comments: 3

Patch Set 3 : Now summary is being shown #

Total comments: 2

Patch Set 4 : imported summary key #

Patch Set 5 : used the first name of the name list #

Patch Set 6 : used .format instead of concatenation #

Total comments: 2

Patch Set 7 : Made the code more readable #

Total comments: 1

Patch Set 8 : some minor changes #

Total comments: 4

Patch Set 9 : Made the code more readable #

Total comments: 2

Patch Set 10 : Removed pep-8 error #

Total comments: 3

Patch Set 11 : Removed pep-8 error #

Patch Set 12 : Made some minor changes #

Total comments: 2

Patch Set 13 : Added commas #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M MoinMoin/forms.py View 1 2 3 4 5 6 11 1 chunk +2 lines, -9 lines 0 comments Download
M MoinMoin/items/ticket.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 17
Thomas.J.Waldmann
https://codereview.appspot.com/99560043/diff/1/MoinMoin/forms.py File MoinMoin/forms.py (right): https://codereview.appspot.com/99560043/diff/1/MoinMoin/forms.py#newcode355 MoinMoin/forms.py:355: key = cls.properties['label_meta_key'] for what do you still need ...
9 years, 11 months ago (2014-05-28 16:52:36 UTC) #1
dimazest
https://codereview.appspot.com/99560043/diff/20001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/20001/MoinMoin/items/ticket.py#newcode38 MoinMoin/items/ticket.py:38: OptionalTicketReference = Reference.to(TICKET_QUERY).using(optional=True).with_properties(label_getter = itemid_short_summary) label_getter=itemid_short_summary you don't need ...
9 years, 11 months ago (2014-05-28 17:09:55 UTC) #2
dimazest
https://codereview.appspot.com/99560043/diff/40001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/40001/MoinMoin/items/ticket.py#newcode40 MoinMoin/items/ticket.py:40: return rev.meta[ITEMID][:4] + ' ( ' + rev.meta[u'summary'][:50] +' ...
9 years, 11 months ago (2014-05-28 17:15:19 UTC) #3
sksaurabhkathpalia
https://codereview.appspot.com/99560043/diff/40001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/40001/MoinMoin/items/ticket.py#newcode40 MoinMoin/items/ticket.py:40: return rev.meta[ITEMID][:4] + ' ( ' + rev.meta[u'summary'][:50] +' ...
9 years, 11 months ago (2014-05-28 17:23:34 UTC) #4
dimazest
https://codereview.appspot.com/99560043/diff/100001/MoinMoin/forms.py File MoinMoin/forms.py (right): https://codereview.appspot.com/99560043/diff/100001/MoinMoin/forms.py#newcode354 MoinMoin/forms.py:354: choices = [(rev.meta[ITEMID], cls.properties['label_getter'](rev)) for rev in revs] label_getter ...
9 years, 11 months ago (2014-05-28 17:29:14 UTC) #5
dimazest
https://codereview.appspot.com/99560043/diff/120001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/120001/MoinMoin/items/ticket.py#newcode47 MoinMoin/items/ticket.py:47: ) ideally it should be: OptionalTicketReference = Reference.to(TICKET_QUERY).using(optional=True).with_properties( label_getter=get_itemid_short_summary ...
9 years, 11 months ago (2014-05-28 17:41:39 UTC) #6
dimazest
https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py#newcode45 MoinMoin/items/ticket.py:45: OptionalTicketReference = \ \ is unnecessary. OptionalTicketReference = Reference.to ...
9 years, 11 months ago (2014-05-28 21:40:27 UTC) #7
sksaurabhkathpalia
https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py#newcode45 MoinMoin/items/ticket.py:45: OptionalTicketReference = \ On 2014/05/28 21:40:26, dimazest wrote: > ...
9 years, 11 months ago (2014-05-29 02:42:38 UTC) #8
dimazest
https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py#newcode45 MoinMoin/items/ticket.py:45: OptionalTicketReference = \ what about, thought it's also ugly. ...
9 years, 11 months ago (2014-05-29 09:42:29 UTC) #9
sksaurabhkathpalia
https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/140001/MoinMoin/items/ticket.py#newcode45 MoinMoin/items/ticket.py:45: OptionalTicketReference = \ On 2014/05/29 09:42:29, dimazest wrote: > ...
9 years, 11 months ago (2014-05-29 13:09:45 UTC) #10
RogerHaase
https://codereview.appspot.com/99560043/diff/160001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/160001/MoinMoin/items/ticket.py#newcode39 MoinMoin/items/ticket.py:39: def get_itemid_short_summary(rev): ================================== FAILURES =================================== _____________________ PEP8-check(ignoring E124 E125 ...
9 years, 11 months ago (2014-05-29 14:13:50 UTC) #11
sksaurabhkathpalia
https://codereview.appspot.com/99560043/diff/160001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/160001/MoinMoin/items/ticket.py#newcode39 MoinMoin/items/ticket.py:39: def get_itemid_short_summary(rev): On 2014/05/29 14:13:50, RogerHaase wrote: > ================================== ...
9 years, 11 months ago (2014-05-29 15:20:04 UTC) #12
Thomas.J.Waldmann
code looks ok, pep8? https://codereview.appspot.com/99560043/diff/170001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/170001/MoinMoin/items/ticket.py#newcode61 MoinMoin/items/ticket.py:61: ) is our pep8 checker ...
9 years, 11 months ago (2014-05-29 16:29:26 UTC) #13
dimazest
https://codereview.appspot.com/99560043/diff/170001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/170001/MoinMoin/items/ticket.py#newcode61 MoinMoin/items/ticket.py:61: ) actually, i'm not sure what would be the ...
9 years, 11 months ago (2014-05-29 16:40:07 UTC) #14
sksaurabhkathpalia
https://codereview.appspot.com/99560043/diff/170001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/170001/MoinMoin/items/ticket.py#newcode61 MoinMoin/items/ticket.py:61: ) On 2014/05/29 16:29:26, Thomas.J.Waldmann wrote: > is our ...
9 years, 11 months ago (2014-05-30 04:36:56 UTC) #15
dimazest
https://codereview.appspot.com/99560043/diff/210001/MoinMoin/items/ticket.py File MoinMoin/items/ticket.py (right): https://codereview.appspot.com/99560043/diff/210001/MoinMoin/items/ticket.py#newcode51 MoinMoin/items/ticket.py:51: optional=True i this cases I usually add "," in ...
9 years, 11 months ago (2014-05-30 05:54:31 UTC) #16
sksaurabhkathpalia
9 years, 11 months ago (2014-05-30 06:05:12 UTC) #17
https://codereview.appspot.com/99560043/diff/210001/MoinMoin/items/ticket.py
File MoinMoin/items/ticket.py (right):

https://codereview.appspot.com/99560043/diff/210001/MoinMoin/items/ticket.py#...
MoinMoin/items/ticket.py:51: optional=True
On 2014/05/30 05:54:31, dimazest wrote:
> i this cases I usually add "," in the end:
> 
> OptionalTicketReference = Reference.to(
>     TICKET_QUERY,
> )
> 
> the reason is, if arguments are added, then the diff will not contain the
> additional comma which is not relevant to the change

Done.
Sign in to reply to this message.

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