Changeset 8592 for mauRepo


Ignore:
Timestamp:
02/10/12 09:37:01 (7 years ago)
Author:
mnagni
Message:

Corrects, again, the GeographicExtent? (previosulsly the python's Decimal type was wrongly managed)

File:
1 edited

Legend:

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

    r8591 r8592  
    196196     
    197197        if isinstance(obj, Decimal): 
    198             return str(obj) 
     198            # wanted a simple yield str(o) in the next line, 
     199            # but that would mean a yield on the line with super(...), 
     200            # which wouldn't work (see my comment below), so... 
     201            return float(str(obj)) 
    199202     
    200203        if not hasattr(obj, "__dict__"): 
Note: See TracChangeset for help on using the changeset viewer.