Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created August 27, 2008 14:11
Show Gist options
  • Save yurenju/7486 to your computer and use it in GitHub Desktop.
Save yurenju/7486 to your computer and use it in GitHub Desktop.
class LinuxApplication(db.Model):
Package = db.StringProperty(required=True)
DownloadCount = db.IntegerProperty()
Section = db.StringProperty()
Name = db.ReferenceProperty(TranslationString)
Comment = db.ReferenceProperty(TranslationText)
GenericName = db.ReferenceProperty(TranslationString)
Exec = db.StringProperty()
Icon = db.StringProperty()
Categories = db.ListProperty(int)
class TranslationString(db.Model):
Id = db.IntegerProperty(required=True)
Lang = db.StringListProperty()
TransString = db.StringProperty()
ReferId = db.ReferenceProperty(TranslationString)
class TranslationText(db.Model):
Id = db.IntegerProperty(required=True)
Lang = db.StringProperty()
TransText = db.TextProperty()
ReferId = db.ReferenceProperty(TranslationText)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment