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

Issue 6903051: Add sanity check for the types of default values for (Local)StructuredProperty

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Cd-MaN
Modified:
13 years, 1 month ago
Reviewers:
guido, GvR
CC:
appengine-ndb-discuss_googlegroups.com
Visibility:
Public.

Description

Add sanity check for the types of default values for (Local)StructuredProperty

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M ndb/model.py View 2 chunks +8 lines, -0 lines 2 comments Download
M ndb/model_test.py View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Cd-MaN
13 years, 1 month ago (2012-12-07 19:37:58 UTC) #1
Cd-MaN
This is a part extracted from https://codereview.appspot.com/6870063/
13 years, 1 month ago (2012-12-07 19:38:28 UTC) #2
GvR
13 years, 1 month ago (2012-12-07 20:15:19 UTC) #3
Almost looks good.

https://codereview.appspot.com/6903051/diff/1/ndb/model.py
File ndb/model.py (right):

https://codereview.appspot.com/6903051/diff/1/ndb/model.py#newcode2071
ndb/model.py:2071: if self._default:
is not None

https://codereview.appspot.com/6903051/diff/1/ndb/model.py#newcode2342
ndb/model.py:2342: if self._default:
is not None
Sign in to reply to this message.

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