Changeset 8502
- Timestamp:
- 09/08/12 14:55:29 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/cedaMoles/MolesManager/moles3epb.py
r8501 r8502 258 258 Loooks for CEDA_Observation containing a specific title (observation.identifier.code) 259 259 @param keywords: a space separated terms string 260 @return : a tuple containing a CEDA_Observation satisfying the queryllection.idenfitier element having the title260 @returns: dictionary where the keys are the GUID of the CEDA_Observation in the value 261 261 """ 262 262 # search_vector is a ts_vector column. To search for terms, you use the … … 270 270 # should always be put into queries this way to prevent SQL injection. 271 271 q = q.params(terms=keywords) 272 return q.all() 272 273 ret = {} 274 for item in q.all(): 275 guid = self.retrieveGUIDFromInstance(item) 276 if guid is not None: 277 ret[guid.id] = item 278 return ret 279 return 273 280 274 281
Note: See TracChangeset
for help on using the changeset viewer.