web/views/__init__.py
changeset 2491 95eada71bb23
parent 2487 c4c13cf8cd7b
child 3122 0e49d2679c5c
equal deleted inserted replaced
2490:b0771c03f531 2491:95eada71bb23
    79             return 'table'
    79             return 'table'
    80         if nb_rows == 1:
    80         if nb_rows == 1:
    81             if req.search_state[0] == 'normal':
    81             if req.search_state[0] == 'normal':
    82                 return 'primary'
    82                 return 'primary'
    83             return 'outofcontext-search'
    83             return 'outofcontext-search'
    84         if len(rset.columns_type(0)) == 1:
    84         if len(rset.column_types(0)) == 1:
    85             return 'adaptedlist'
    85             return 'adaptedlist'
    86         return 'list'
    86         return 'list'
    87     return 'table'
    87     return 'table'
    88 
    88 
    89 
    89