Skip to content

Get All Fields From App Engine Expando

by Jason on October 6th, 2010

To get a dictionary of all the fields, including dynamic fields, from an appengine datastore Expando (or even Model) class, add this method to your model:

def getFields(self):
      combinedDict = self.properties()
      combinedDict.update(self._dynamic_properties)

      return combinedDict
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • RSS
  • StumbleUpon
  • Twitter

From → Uncategorized

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS