def map_wmc(request, mapid, template='maps/wmc.xml'):
 map_obj = _resolve_map(request, mapid, 'base.view_resourcebase', _PERMISSION_MSG_VIEW)
 return render_to_response(template, RequestContext(request, {'map': map_obj, 'siteurl': settings.SITEURL}), content_type='text/xml')

def map_wmc ( request , mapid , template = 'maps/wmc.xml' ) : map_obj = _resolve_map ( request , mapid , 'base.view_resourcebase' , _PERMISSION_MSG_VIEW ) return render_to_response ( template , RequestContext ( request , { 'map' : map_obj , 'siteurl' : settings . SITEURL } ) , content_type = 'text/xml' )
serialize an ogc web map context document 1 .