Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/c/h/chrisw-HEAD/chrisw/gdb.py   chrisw(Download)
class Entity(db.FlyModel):
  """The base model for graph node"""
  create_at = db.DateTimeProperty(auto_now_add=True)
 
  def link(self, link_type, target, link_attr=None):
class Message(db.FlyModel):
  """The model which represent the message in system"""
  create_at = db.DateTimeProperty(auto_now_add=True)
  update_at = db.DateTimeProperty(auto_now=True)
 
  target = db.WeakReferenceProperty(required=True)
  target_type = db.StringProperty(required=True)
  create_at = db.DateTimeProperty(auto_now_add=True)
  update_at = db.DateTimeProperty(auto_now=True)
 

src/c/h/chrisw-HEAD/common/models.py   chrisw(Download)
class User(gdb.Entity):
  """docstring for User"""
  fullname = db.StringProperty(required=True, default="Name")
  username = db.StringProperty(required=True)
  create_date = db.DateTimeProperty(auto_now_add=True)