Changes between Version 5 and Version 6 of DeveloperGuidelines/GIS


Ignore:
Timestamp:
12/29/08 02:45:55 (13 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/GIS

    v5 v6  
    2121{{{controllers/gis.py}}}
    2222{{{
     23def update_layer():
     24    # If form needs populating:
     25    elif type=="newlayertype":
     26        field = [""]
     27        subtype=0
     28        options_subtype = [""]
     29        key=0
     30    form=FORM(
     31        INPUT(_name="field"), # Could also be a SELECT
     32    )
     33    if form.accepts(request.vars,session,keepvalues=True):
     34        elif type_new=="newlayertype":
     35            db(db['gis_layer_%s' % type_new].layer==t2.id).select()[0].update_record(
     36                field=form.vars.field
     37            )
     38
    2339def map_service_catalogue():
    2440    form=FORM(
     
    3753}}}
    3854=== View ===
    39 {{{views/map_service_catalogue.html}}}
     55{{{views/gis/map_service_catalogue.html}}}
    4056{{{
    4157<tr><td><label>{{=T("field_label")}}</label></td>
     
    4359{{if form.errors.field:}}<div class="error">{{=form.errors.field}}</div>{{pass}}</td></tr>
    4460}}}
    45 {{{views/map_viewing_client.html}}}
     61{{{static/scripts/gis_layers.js}}}
     62{{{
     63
     64}}}
     65{{{views/gis/map_viewing_client.html}}}
    4666
    4767