Skip to content

Instantly share code, notes, and snippets.

@eightysteele
Created August 15, 2011 00:01
Show Gist options
  • Select an option

  • Save eightysteele/1145479 to your computer and use it in GitHub Desktop.

Select an option

Save eightysteele/1145479 to your computer and use it in GitHub Desktop.
from ndb import model
class LayerPolygon(model.Model):
polygonid = model.StringProperty('p', required=True)
areaid = model.StringProperty('a', required=True)
specieslatin = model.StringProperty('s', required=True)
source = model.StringProperty('r', required=True)
class LayerIndex(model.Expando):
polygons = model.StructuredProperty(LayerPolygon, repeated=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment