Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class EcoregionLayerIndex(db.Model): #parent = an EcoregionSet
terms = db.CategoryProperty()
class EcoregionLayer(db.Model):
name = db.StringProperty()
id = db.StringProperty()
ecoCodes = db.ListProperty(db.Key)
class MOLLayers(db.Model):
layer = db.Key()
terms = db.CategoryProperty()
#or
class MOLLayers(db.Model): #key_name = search term
layers = db.ListProperty(db.Key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment