From 2b60a1cd491c76f17e9efb16d84529c60db90b1b Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 20 Mar 2014 11:14:25 -0500 Subject: [PATCH] support for geography types, thanks sunny --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index fc7f32a8..7f2dd6e5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.5-stable+timestamp.2014.03.19.16.24.08 +Version 2.9.5-stable+timestamp.2014.03.20.11.13.15 diff --git a/gluon/dal.py b/gluon/dal.py index b0f9a889..36f57471 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1710,7 +1710,7 @@ class BaseAdapter(ConnectionPool): return self.expand(field, colnames=True) self._colnames = map(colexpand, fields) def geoexpand(field): - if isinstance(field.type,str) and field.type.startswith('geometry') and isinstance(field, Field): + if isinstance(field.type,str) and field.type.startswith('geo') and isinstance(field, Field): field = field.st_astext() return self.expand(field) sql_f = ', '.join(map(geoexpand, fields))