Skip to content

Instantly share code, notes, and snippets.

@andrewxhill
Created May 3, 2011 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewxhill/954147 to your computer and use it in GitHub Desktop.
Save andrewxhill/954147 to your computer and use it in GitHub Desktop.
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