Changeset 3453 for framework

Show
Ignore:
Timestamp:
04/15/10 15:57:41 (2 years ago)
Author:
elemoine
Message:

Shapely cannot compare a geometry to None, work around that, r=aabt (closes #567)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/server/trunk/mapfish/sqlalchemygeom.py

    r3083 r3453  
    9999 
    100100    def compare_values(self, x, y): 
    101         return x.equals(y) 
     101        t = (x, y) 
     102        if None not in t: 
     103            return x.equals(y) 
     104        return t == (None, None) 
    102105 
    103106    def bind_processor(self, dialect):