ndb.msgprop.enumProperty causing havoc with protopigeon "to_entity" and "to_message"

10 views
Skip to first unread message

Dewey Gaedcke

unread,
Apr 22, 2016, 6:04:02 PM4/22/16
to Ferris Framework
Is it just me or does the ndb.msgprop.enumProperty cause problems using protopigeon to cast back & forth "to_entity" and "to_message"

I also noticed that when ndb.Model type is expando, Protopigeon throws an invalid key error for "GenericProperty" at:

translators.py line 89   --->       converter = converters[property.__class__.__name__]

no property named "GenericProperty"


Any tips for how to handle these non-standard field types??

Thx
Dewey

Jonathan Parrott

unread,
Apr 23, 2016, 4:06:33 AM4/23/16
to Dewey Gaedcke, Ferris Framework
Protopigeon doesn't support genericproperties because they do not directly map to a protorpc message field type.

Not sure on the enumproperty, but it's likely that there was never a converter implemented for it.

Pull requests are welcome.
Reply all
Reply to author
Forward
0 new messages