web/views/__init__.py
changeset 2469 b87c4d150e09
parent 2446 440cb4ea7e5c
child 2487 c4c13cf8cd7b
equal deleted inserted replaced
2468:93853b6f3bad 2469:b87c4d150e09
    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:
       
    85             return 'adaptedlist'
    84         return 'list'
    86         return 'list'
    85     return 'table'
    87     return 'table'
    86 
    88 
    87 
    89 
    88 def linksearch_select_url(req, rset):
    90 def linksearch_select_url(req, rset):