pythongoogle-app-engineexpando

App Engine Entity to Dictionary


What is a good way to copy a google app engine entity (in python) to a dictionary object? I'm using db.Expando objects. All properties are expando properties.

Thanks!


Solution

  • Having an entity called foo try with:

    foo.__dict__