Open GoogleCodeExporter opened 8 years ago
Original comment by mattbrow...@gmail.com
on 24 Jun 2008 at 10:59
Indeed,
JSON serialization seems to be not working for GAE models.
Original comment by hus...@gmail.com
on 10 Jul 2008 at 4:57
was this fixed?
Original comment by kfitzger...@gmail.com
on 9 Oct 2008 at 3:55
[deleted comment]
Still broken for me.
Here is my model:
class Page(db.Model):
adventure = db.ReferenceProperty(Adventure)
name = db.StringProperty()
Original comment by tst...@gmail.com
on 5 Dec 2008 at 10:21
Purpose of code changes on this branch:
This patch fixes serialization for some ReferenceProperty items, and properly
serializes ListProperty items containing item keys.
After the review, I'll merge this branch into:
/trunk
Original comment by datavor...@gmail.com
on 15 May 2009 at 9:10
Attachments:
When try to do JSON serialize like this:
def get(self):
#query = db.GqlQuery("SELECT * FROM Subscriber WHERE serviceCode = :1",
"oneCloudI")
query = db.GqlQuery("SELECT * FROM Subscriber")
LIMIT = 1000
subscriberList = query.fetch(LIMIT,offset=0);
json = serializers.serialize("json", subscriberList)
return HttpResponse(json, mimetype="application/json")
I'm getting this error:
Traceback (most recent call last):
File "c:\Program
Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line
498, in
__call__
handler.get(*groups)
File "d:\GoogleAppEngine\dbpolymorph\demo.py", line 334, in get
json = serializers.serialize("json", subscriberList)
File "c:\Program
Files\Google\google_appengine\lib\django\django\core\serializers\__init__.py",
line
67, in serialize
s.serialize(queryset, **options)
File "c:\Program
Files\Google\google_appengine\lib\django\django\core\serializers\base.py", line
36,
in serialize
for field in obj._meta.fields:
AttributeError: 'Subscriber' object has no attribute '_meta'
Original comment by nealwalt...@gtempaccount.com
on 21 Jun 2009 at 4:15
Original issue reported on code.google.com by
zenchic...@live.com
on 20 Jun 2008 at 5:13Attachments: