Exemplo n.º 1
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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def fromName(db, repository, name):
     from dbutils import Branch
     return Review.fromBranch(db, Branch.fromName(db, repository, name))
Exemplo n.º 4
0
 def fromName(db, repository, name):
     from dbutils import Branch
     return Review.fromBranch(db, Branch.fromName(db, repository, name))