예제 #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))