Esempio n. 1
0
from django.conf.urls import patterns, url, include
from cloudengine.decorators import admin_view
from cloudengine.core.views import (CreateAppView, 
                AdminHomeView, AppSettingsView,
                AppsBrowser)

urlpatterns = patterns('',

                        url(r'^$', admin_view (AdminHomeView.as_view()), 
                            name="cloudengine-admin-home"),
                        
                        url(r'^create_app/$', CreateAppView.as_view()),
                       
                       url(r'^classes/', 
                            include('cloudengine.classes.urls')),
                       
                       url(r'^files/', 
                            include('cloudengine.files.urls')),
                       
                       url(r'^push/$', 
                            include('cloudengine.push.urls')),
                       
                       url(r'^users/$', 
                            include('cloudengine.users.urls')),
                       
                       url(r'^apps/$', admin_view(AppsBrowser.as_view()), 
                            name="cloudengine-apps-browser"),
                       
                        url(r'^apps/(?P<app_name>[a-zA-Z0-9]+)/$', 
                                    admin_view(AppSettingsView.as_view()), name='cloudengine-app-settings'),
    
Esempio n. 2
0
from django.conf.urls import patterns, url
from cloudengine.classes.views import AppDataView
from cloudengine.decorators import admin_view



urlpatterns = patterns('',

                       url(r'^$', 
                            admin_view(AppDataView.as_view()), name="cloudengine-app-data"),
                     
                       )
Esempio n. 3
0
from django.conf.urls import patterns, url
from cloudengine.files.views import (AppFilesView,
                        download_file)
from cloudengine.decorators import admin_view

# todo: rest api -- allow traversing api through urls??

urlpatterns = patterns('',
                       # Examples:
                       #url(r'^$', FileList.as_view(), name="files-app-home"),
                       # todo: the regex decides the allowed filenames.
                       # standardize filenames
                       # todo: add testcases for all possible filenames
                       url(r'^$', admin_view(AppFilesView.as_view()),
                          name="cloudengine-app-files"),
                       url(r'^upload/$', admin_view(AppFilesView.as_view()),
                           name="cloudengine-app-files-upload"),
                       url(r'^download/(?P<appname>[a-zA-Z0-9]+)/(?P<filename>.+)/$', 
                           admin_view(download_file),
                           name="cloudengine-download-file"),
                       )

Esempio n. 4
0
from django.conf.urls import patterns, url
from rest_framework.urlpatterns import format_suffix_patterns
from cloudengine.push.views import AppPushView
from cloudengine.decorators import admin_view

# todo: rest api -- allow traversing api through urls??

urlpatterns = patterns('',
                       # Examples:
                       #url(r'^$', FileList.as_view(), name="files-app-home"),
                       # todo: the regex decides the allowed filenames.
                       # standardize filenames
                       # todo: add testcases for all possible filenames
                       url(r'^$', admin_view(AppPushView.as_view()), 
                           name="cloudengine-app-push"),
                      )

urlpatterns = format_suffix_patterns(urlpatterns)