Changeset 911
- Timestamp:
- 03/10/10 11:51:45 (5 months ago)
- Location:
- GeoNode/trunk/src/GeoNodePy/geonode
- Files:
-
- 4 modified
-
maps/urls.py (modified) (1 diff)
-
maps/views.py (modified) (2 diffs)
-
settings.py (modified) (2 diffs)
-
templates/maps/mapinfo.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GeoNode/trunk/src/GeoNodePy/geonode/maps/urls.py
r910 r911 8 8 (r'^$', 'maps'), 9 9 (r'^new$', 'newmap'), 10 (r'^(?P<mapid>\d+)$', 'map detail'),10 (r'^(?P<mapid>\d+)$', 'map_controller'), 11 11 (r'^(?P<mapid>\d+)/view$', 'view'), 12 12 (r'^embed/$', 'embed'), 13 13 (r'^(?P<mapid>\d+)/embed$', 'embed'), 14 14 (r'^(?P<mapid>\d+)/data$', 'mapJSON'), 15 (r'^(?P<mapid>\d+)/delete$', 'deletemap'),16 # map information page17 (r'^detail/(?P<mapid>\d+)$', 'mapdetail'),18 19 15 ) -
GeoNode/trunk/src/GeoNodePy/geonode/maps/views.py
r910 r911 149 149 })) 150 150 151 def map_controller(request, mapid): 152 ''' 153 main view for map resources, dispatches to correct 154 view based on method and query args. 155 ''' 156 if 'remove' in request.GET: 157 return deletemap(request, mapid) 158 else: 159 return mapdetail(request, mapid) 151 160 152 161 def view(request, mapid): … … 162 171 'GEOSERVER_BASE_URL' : settings.GEOSERVER_BASE_URL 163 172 })) 164 165 173 166 174 def embed(request, mapid=None): -
GeoNode/trunk/src/GeoNodePy/geonode/settings.py
r908 r911 2 2 from utils import path_extrapolate 3 3 from urllib import urlencode 4 import os 4 5 5 6 _ = lambda x: x … … 15 16 MANAGERS = ADMINS 16 17 18 # '../' relative to this file 19 PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 20 17 21 DATABASE_ENGINE = 'sqlite3' 18 DATABASE_NAME = 'development.db'22 DATABASE_NAME = os.path.join(PROJECT_ROOT, 'development.db') 19 23 DATABASE_USER = '' # Not used with sqlite3. 20 24 DATABASE_PASSWORD = '' # Not used with sqlite3. -
GeoNode/trunk/src/GeoNodePy/geonode/templates/maps/mapinfo.html
r910 r911 32 32 <ul> 33 33 <li><a href="{% url geonode.maps.views.view map.id %}">Edit map or metadata</a></li> 34 <li><a href="{% url geonode.maps.views. deletemap map.id %}">Delete map</a></li>34 <li><a href="{% url geonode.maps.views.map_controller map.id %}?remove">Delete map</a></li> 35 35 <li><a href="{% url geonode.maps.views.newmap %}?copy={{map.id}}">Duplicate map</a></li> 36 36 </ul>
