Ignore:
Timestamp:
02/05/12 14:06:03 (7 years ago)
Author:
jhorton
Message:

added record author to table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/views/cedaSearch.py

    r8291 r8296  
    2727    if not keywords.endswith("'"): 
    2828        keywords = keywords + "'" 
    29     obsevations = Moles3EPB.extractObservationByTitleKeywords(keywords, request.moles_session)       
     29    obsevations = Moles3EPB.extractObservationByTitleKeywords(keywords, request.moles_session)  
    3030    titles = [] 
    3131    ids = [] 
    3232    list_list = [] 
    3333    baseCov = "http://" + request.get_host() + "/cov/" 
    34     O = None 
    3534    for o in obsevations: 
    36         titles.append("".join( 
    37                     [baseCov, 
    38                      str(o.id) 
    39                     ])) 
    40         ids.append(o.id) 
    4135        a = "".join( 
    4236            [baseCov, 
    4337            str(o.id)]) 
    44         list_list.append((a, o.description))  
    45         O = o 
     38        auth_query = Moles3EPB.observationAuthor(o.id, request.moles_session) 
     39        ath = auth_query.all() 
     40        ath0 = ath[0] 
     41        list_list.append((a, o.description, ath0.role))  
    4642    return list_list 
    4743 
Note: See TracChangeset for help on using the changeset viewer.