2011-10-11 1 views
2

는 NDB (버전 0.7 & 0.8) 없음 수 없다 키와 모델을 가정하지 않는다.는 Model.KeyProperty를 조회하는 방법 == 데이터 저장소 플러스 (NDB)의 없음

File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__ 
    handler.get(*groups) 
File "/Users/reiot/Documents/Works/ndbtest/main.py", line 91, in get 
    count = Test.query(Test.k == None).count() # error 
File "/Users/reiot/Documents/Works/ndbtest/ndb/model.py", line 500, in __eq__ 
    return self._comparison('=', value) 
File "/Users/reiot/Documents/Works/ndbtest/ndb/model.py", line 491, in _comparison 
    return FilterNode(self._name, op, self._datastore_type(value)) 
File "/Users/reiot/Documents/Works/ndbtest/ndb/model.py", line 1138, in _datastore_type 
    return datastore_types.Key(value.urlsafe()) 
AttributeError: 'NoneType' object has no attribute 'urlsafe' 

KeyProperty를 없음으로 쿼리하려면 어떻게해야합니까?

답변

1

이것은 NDB의 버그처럼 보입니다. 이슈 트래커에 파일을 등록 할 수 있습니까?

+0

확인. http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=77에서 제출했습니다. :) –

관련 문제