Changeset 8501 for mauRepo/MolesManager


Ignore:
Timestamp:
09/08/12 14:52:09 (7 years ago)
Author:
mnagni
Message:

Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534
Return a dictionary of objects where the key is the GUID of the object in the value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/moles3epb.py

    r8496 r8501  
    318318        ret = EPB.search(clazz, inst_id, self._session) 
    319319        return ret 
     320       
     321    def search_object_and_gui(self, clazz, inst_id = None):         
     322        result = EPB.search(clazz, inst_id, self._session) 
     323        ret = {} 
     324        for item in result: 
     325            guid = self.retrieveGUIDFromInstance(item) 
     326            if guid is not None: 
     327                ret[guid.id] = item             
     328        return ret       
    320329       
    321330    def searchSelectiveLoad(self, clazz, inst_id, attributes):  
Note: See TracChangeset for help on using the changeset viewer.