Ejemplo n.º 1
0
class KindPropertyNamePropertyTypeStat(BaseKindStatistic):
    """Statistic on (kind, property_name, property_type) tuples in the datastore.

  There is an instance of the KindPropertyNamePropertyTypeStat for every
  (kind, property_name, property_type) tuple in the application's datastore.
  """
    STORED_KIND_NAME = '__Stat_PropertyType_PropertyName_Kind__'

    property_type = db.StringProperty()

    property_name = db.StringProperty()
Ejemplo n.º 2
0
class BaseKindStatistic(BaseStatistic):
    """Base Statistic Model class for stats associated with kinds.

  The 'kind_name' attribute represents the name of the kind associated with the
  statistic instance.
  """
    STORED_KIND_NAME = '__BaseKindStatistic__'

    kind_name = db.StringProperty()
Ejemplo n.º 3
0
class PropertyTypeStat(BaseStatistic):
    """An aggregate of all properties across the entire application by type.

  There is an instance of the PropertyTypeStat for every property type
  (cyclozzo.apps.api.datastore_types._PROPERTY_TYPES) in use by the
  application in its datastore.
  """
    STORED_KIND_NAME = '__Stat_PropertyType__'

    property_type = db.StringProperty()
Ejemplo n.º 4
0
class Greeting(db.Model):
    author = db.UserProperty()
    content = db.StringProperty(multiline=True)
    date = db.DateTimeProperty(auto_now_add=True)
Ejemplo n.º 5
0
 class FooModel(db.Model):
     foo = db.IntegerProperty()
     bar = db.StringProperty()
     baz = db.TextProperty()