示例#1
0
 def get_by_id(cls, id):
     dbpost = id and DBPost.get_by_id(id)
     return dbpost and cls(dbpost)
示例#2
0
文件: common.py 项目: errorcode7/me
 def get_by_id(cls, id):
     dbpost = DBPost.get_by_id(id)
     return dbpost and cls(dbpost)