コード例 #1
0
ファイル: review.py プロジェクト: Tigge/critic
 def fromArgument(db, argument):
     try:
         return Review.fromId(db, int(argument))
     except:
         from dbutils import Branch
         branch = Branch.fromName(db, str(argument))
         if not branch: return None
         return Review.fromBranch(db, branch)
コード例 #2
0
 def fromArgument(db, argument):
     try:
         return Review.fromId(db, int(argument))
     except:
         from dbutils import Branch
         branch = Branch.fromName(db, str(argument))
         if not branch: return None
         return Review.fromBranch(db, branch)
コード例 #3
0
ファイル: review.py プロジェクト: Tigge/critic
 def fromName(db, repository, name):
     from dbutils import Branch
     return Review.fromBranch(db, Branch.fromName(db, repository, name))
コード例 #4
0
 def fromName(db, repository, name):
     from dbutils import Branch
     return Review.fromBranch(db, Branch.fromName(db, repository, name))