~fekete-mihai/geospatial-addons/geospatial-addons

« back to all changes in this revision

Viewing changes to base_geoengine/geo_field.py

  • Committer: nicolas.bessi at camptocamp
  • Author(s): nbessi and fredj
  • Date: 2012-12-13 13:53:14 UTC
  • mfrom: (81.4.11 geoengine-edit-widget)
  • Revision ID: nicolas.bessi@camptocamp.com-20121213135314-c6dw28ar6hcno5uv
[ADD] support of basic edit widget in GeoEngine + support of reprojection

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
                 "FROM geometry_columns "
149
149
                 "WHERE f_table_name = %s "
150
150
                 "AND f_geometry_column = %s")
151
 
        logger.debug(cursor.mogrify(query, (table, col_name)))
152
151
        cursor.execute(query, (table, col_name))
153
152
        check_data = cursor.fetchone()
154
153
        if not check_data:
237
236
        res = geojson.dumps(value)
238
237
    else:
239
238
        res =  super(GeoFunction, self).postprocess(cr, uid, obj, field, value, context)
240
 
    return res 
241
 
           
 
239
    return res
 
240
 
242
241
class GeoFunction(fields.function):
243
242
    #shell class
244
243
    pass