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

« back to all changes in this revision

Viewing changes to base_geoengine_demo/retail_machine.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:
27
27
 
28
28
    _name = "geoengine.demo.automatic.retailing.machine"
29
29
    _columns = {'the_point' : fields.geo_point('Coordinate'),
30
 
                'the_line' : fields.geo_point('Power supply line'),
 
30
                'the_line' : fields.geo_line('Power supply line'),
31
31
                'total_sales': fields.float('Total sale'),
32
32
                'money_level': fields.char('Money level', size=32),
33
33
                'state': fields.selection([('hs', 'HS'), ('ok', 'OK')],'State'),