selectors.py
branchstable
changeset 7982 77ed9b2fc9a5
parent 7879 9aae456abab5
child 7986 552d41237156
equal deleted inserted replaced
7978:b6150210f692 7982:77ed9b2fc9a5
   301                 return 0
   301                 return 0
   302             etypes = rset.column_types(col)
   302             etypes = rset.column_types(col)
   303         else:
   303         else:
   304             etype = rset.description[row][col]
   304             etype = rset.description[row][col]
   305             # may have None in rset.description on outer join
   305             # may have None in rset.description on outer join
   306             if etype is None:
   306             if etype is None or rset.rows[row][col] is None:
   307                 return 0
   307                 return 0
   308             etypes = (etype,)
   308             etypes = (etype,)
   309         score = 0
   309         score = 0
   310         for etype in etypes:
   310         for etype in etypes:
   311             escore = self.score(cls, req, etype)
   311             escore = self.score(cls, req, etype)