Esempio n. 1
0
    re_path(r'^tkauth/(?P<ticketId>.+)$',
            uds.web.views.ticketAuth,
            name='TicketAuth'),

    # REST Api
    re_path(r'^rest/(?P<arguments>.*)$',
            REST.Dispatcher.as_view(),
            name="REST"),

    # Web admin GUI
    re_path(r'^adm/', include('uds.admin.urls')),

    # Files
    re_path(r'^files/(?P<uuid>.+)',
            uds.web.views.file_storage,
            name='uds.web.views.file_storage'),

    # Internacionalization in javascript
    # Javascript catalog. In fact, lang is not used, but it is maintanied for "backward" user templates compatibility
    re_path(r'^jsi18n/(?P<lang>[a-z]*)$',
            JavaScriptCatalog.as_view(),
            name='uds.web.views.jsCatalog'),

    # Modern
    path('js', uds.web.views.modern.js, name="uds.js"),
    re_path('^modern.*', uds.web.views.modern.index, name='modern'),
]

# Append urls from special dispatchers
urlpatterns += loadModulesUrls()
Esempio n. 2
0
    url(r'^down$', 'web.views.client_downloads', name='ClientDownload'),
    (r'^down/(?P<os>[a-zA-Z0-9-]*)$', 'web.views.client_downloads'),
    url(r'^pluginDetection/(?P<detection>[a-zA-Z0-9-]*)$', 'web.views.plugin_detection', name='PluginDetection'),
    # Client access enabler
    url(r'^enable/(?P<idService>.+)/(?P<idTransport>.+)$', 'web.views.clientEnabler', name='ClientAccessEnabler'),

    # Custom authentication callback
    (r'^auth/(?P<authName>.+)', 'web.views.authCallback'),
    (r'^authinfo/(?P<authName>.+)', 'web.views.authInfo'),
    (r'^about', 'web.views.about'),
    # Ticket authentication
    url(r'^tkauth/(?P<ticketId>.+)$', 'web.views.ticketAuth', name='TicketAuth'),

    # XMLRPC Processor
    (r'^xmlrpc$', 'xmlrpc.views.xmlrpc'),

    # REST Api
    url(r'^rest/(?P<arguments>.*)$', REST.Dispatcher.as_view(), name="REST"),

    # Web admin GUI
    (r'^adm/', include('uds.admin.urls')),

    # Internacionalization in javascript
    # Javascript catalog
    (r'^jsi18n/(?P<lang>[a-z]*)$', 'web.views.jsCatalog', js_info_dict),

)

# Append urls from special dispatchers
urlpatterns += loadModulesUrls()