Changeset 2199

Show
Ignore:
Timestamp:
04/07/09 16:14:00 (4 years ago)
Author:
pgiraud
Message:

we forgot to send wmsurl property when creating a new mapfile, and update the default mapfile properties

Location:
sandbox/camptocamp/Studio/studio
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/Studio/studio/controllers/mapfiles.py

    r2132 r2199  
    7373 
    7474        href = h.url_for(controller="mapfiles", action="show", id=map.id) 
    75         return {'name': map.name, 'id': map.id, 'href': href} 
     75        wmsurl = h.url_for(controller='mapfiles', action='wms_proxy', id=map.id) 
     76        return {'name': map.name, 'id': map.id, 'href': href, 'wmsurl': wmsurl} 
    7677 
    7778    @ActionProtector(has_permission('create_update_mapfiles')) 
  • sandbox/camptocamp/Studio/studio/public/js/Studio/interface/RestInterface.js

    r2009 r2199  
    9999                    this.record.data.id = obj.id; 
    100100                    this.record.data.url = obj.href; 
     101                    this.record.data.wmsurl = obj.wmsurl; 
    101102                    if (config && config.success) { 
    102103                        config.success.call(config.scope);