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

Issue 23600043: Update proof to handle 0 rev charms.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rharding
Modified:
10 years, 6 months ago
Reviewers:
bac, mp+194526
Visibility:
Public.

Description

Update proof to handle 0 rev charms. - When parsing the store url for a rev the regex would return the int 0 - Proof checks to determine if a revision was defined would use if revision and fail (bool(0) == False) - Updates the if checks to use if revision is not None, if revision is None directly. https://code.launchpad.net/~rharding/charmworld/handle-0-rev/+merge/194526 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/models.py View 3 chunks +4 lines, -4 lines 2 comments Download
M charmworld/views/tests/test_proof.py View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 3
rharding
Please take a look.
10 years, 6 months ago (2013-11-08 14:59:10 UTC) #1
rharding
Reviewer comments below. https://codereview.appspot.com/23600043/diff/1/charmworld/models.py File charmworld/models.py (right): https://codereview.appspot.com/23600043/diff/1/charmworld/models.py#newcode1607 charmworld/models.py:1607: if self.revision is not None: if ...
10 years, 6 months ago (2013-11-08 15:00:01 UTC) #2
bac
10 years, 6 months ago (2013-11-08 15:05:42 UTC) #3
LGTM, no qa

https://codereview.appspot.com/23600043/diff/1/charmworld/models.py
File charmworld/models.py (right):

https://codereview.appspot.com/23600043/diff/1/charmworld/models.py#newcode1607
charmworld/models.py:1607: if self.revision is not None:
Good change.
Sign in to reply to this message.

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