Closed GoogleCodeExporter closed 8 years ago
I assume you had a DictField mapped to a Schema, e.g. something like
mylist = ListField(DictField(Schema.build(
foo = IntegerField(),
bar = TextField()
)))
In that case Schema.build actually creates a class, and the name of that class
is AnonymousStruct. So I think
what you're seeing here is expected. In fact, if you got plain dicts back, you
couldn't do tricks like:
print mylist[0].foo
If you just want a plain dict, you can create a DictField that isn't bound to a
Schema:
mylist = ListField(DictField)
Original comment by cmlenz
on 29 Jun 2009 at 2:58
Original issue reported on code.google.com by
gilbert....@gmail.com
on 31 Mar 2009 at 4:59