コード例 #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)