Ignore:
Timestamp:
10/08/12 15:32:06 (8 years ago)
Author:
mnagni
Message:

Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/views/moles2gui/__init__.py

    r8486 r8507  
    9595        if type(cedaObject) in cls.acceptedTypes:        
    9696            for item in cls.mapper.items(): 
    97                 setattr(instance, item[0], getData(cedaObject, item[1])) 
     97                if item[0] == 'resultTime' and item[1] == 'resultTime': 
     98                    print item[0] 
     99                try:                         
     100                    setattr(instance, item[0], getData(cedaObject, item[1])) 
     101                except Exception as e: 
     102                    print e 
    98103 
    99104    @classmethod 
     
    146151        setattr(adapter, '_adapter_module', adapter.__module__)         
    147152        setattr(adapter, '_adapter_clazz', adapter.__class__.__name__) 
    148              
    149153        cls._cedaObjToAdapterMapping(adapter, cedaObject) 
    150154        adapter.postCedaObjToAdapterMapping(cedaObject) 
     
    318322        encoder = dynamicallyLoadClass(module, clazz) 
    319323        return encoder.cedaObjToAdapter(cedaObj) 
     324 
    320325     
    321326    # Then is a non mapped class 
Note: See TracChangeset for help on using the changeset viewer.