Ejemplo n.º 1
0
from django.conf import settings
from django.conf.urls import patterns
from django.conf.urls import url
from django.conf.urls import include
from django.conf.urls.static import static
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView
from django.views.generic import TemplateView

from annotations.urls import urlpatterns as annotations_urls
# to replace /api/base & /api/owners GeoNode routes with our own:
# unregister old routes before geonode.urls.urlpatterns is imported
from geonode.api.urls import api as geonode_api
geonode_api.unregister('owners')
geonode_api.unregister('base')
from geonode.geoserver.views import layer_acls, resolve_user, layer_batch_download
from geonode.urls import urlpatterns
from maploom.geonode.urls import urlpatterns as maploom_urls
from osgeo_importer.urls import urlpatterns as importer_urlpatterns
from tastypie.api import Api

from mapstory.api.api import MapstoryOwnersResource, InterestsResource
from mapstory.api.resourcebase_api import ResourceBaseResource
from mapstory.api.urls import api as mapstory_api
from mapstory.apps.favorite.urls import api as favorites_api
from mapstory.importers import UploadedLayerResource
from mapstory.notifications import notify_download, set_profile_notification
from mapstory.views import download_append_csv, download_append_shp
from mapstory.views import GetPageView
from mapstory.views import IndexView
from mapstory.views import LeaderListView
Ejemplo n.º 2
0
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#########################################################################

from django.conf.urls import url, include
from .api import TrainingResource, TagResourceSimple

from geonode.api import api as geonode_api
from geonode.api.urls import api

from trainings import views as trainings

api.api_name = 'api'
api.register(TrainingResource())
api.unregister(geonode_api.TagResource())
api.register(TagResourceSimple())

urlpatterns = [
    url(r'^upload', trainings.training_upload, name='training_upload'),
    url(r'^check$',
        trainings.training_download_check,
        name='training_download_check'),
    url(r'^$', trainings.trainings_browse, name='trainings_browse'),
    url(r'^(?P<keyword>[^/]*)$',
        trainings.trainings_browse,
        name='trainings_browse'),
    url(r'^(?P<id>\d+)/$', trainings.training_detail, name='training_detail'),
    url(r'^(?P<id>\d+)/download/$',
        trainings.training_download,
        name='training_download'),
Ejemplo n.º 3
0
from django.conf import settings
from django.conf.urls import patterns
from django.conf.urls import url
from django.conf.urls import include
from django.conf.urls.static import static
from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView

from annotations.urls import urlpatterns as annotations_urls
# to replace /api/base & /api/owners GeoNode routes with our own:
# unregister old routes before geonode.urls.urlpatterns is imported
from geonode.api.urls import api as geonode_api
geonode_api.unregister('owners')
geonode_api.unregister('base')
from geonode.geoserver.views import layer_acls, resolve_user, layer_batch_download
from geonode.urls import urlpatterns
from maploom.geonode.urls import urlpatterns as maploom_urls
from osgeo_importer.urls import urlpatterns as importer_urlpatterns
from tastypie.api import Api

from mapstory.api.api import MapstoryOwnersResource
from mapstory.api.resourcebase_api import ResourceBaseResource
from mapstory.api.urls import api as mapstory_api
from mapstory.apps.favorite.urls import api as favorites_api
from mapstory.importers import UploadedLayerResource
from mapstory.notifications import notify_download, set_profile_notification
from mapstory.views import download_append_csv, download_append_shp
from mapstory.views import GetPageView
from mapstory.views import IndexView
from mapstory.views import LeaderListView
from mapstory.views import MapStoryConfirmEmailView
Ejemplo n.º 4
0
from geonode.api.urls import api
from mapstory.api.api import InterestsResource, MapstoryOwnersResource
from mapstory.api.resourcebase_api import (FeaturedResourceBaseResource,
                                           MapStoryResource,
                                           ResourceBaseResource)

api.unregister('owners')
api.unregister('base')
api.register(ResourceBaseResource())
api.register(FeaturedResourceBaseResource())
api.register(MapStoryResource())
api.register(MapstoryOwnersResource())
api.register(InterestsResource())