Exemplo n.º 1
0
    LiveStatisticsView,
    VersionsUsageView,
    RequestListView,
    AppRequestDetailView,
    PreferenceFormView,
    MonitoringFormView,
    ManualCleanupFormView,
)


urlpatterns = [
    url(r'^service/update2$', UpdateView.as_view(), name='update'),
    url(r'^tbproxy/usagestats', UsageStatsView.as_view(), name='usage_stats'),
]


if settings.IS_PRIVATE:
    urlpatterns += [
        url(r'^admin/statistics/$', StatisticsView.as_view(), name='omaha_statistics'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ -]+)/$', StatisticsDetailView.as_view(),
            name='omaha_statistics_detail'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ -]+)/live/$', LiveStatisticsView.as_view(),
            name='omaha_live_statistics'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ -]+)/requests/$', RequestListView.as_view(), name='omaha_request_list'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ -]+)/usage/$', VersionsUsageView.as_view(), name='omaha_version_usage'),
        url(r'^admin/statistics/requests/(?P<pk>\d+)/$', AppRequestDetailView.as_view(), name='omaha_request_detail'),
        url(r'^admin/preferences/(?P<section>[a-zA-Z0-9_ ]*)', PreferenceFormView.as_view(), name='set_preferences'),
        url(r'^admin/monitoring/', MonitoringFormView.as_view(), name='monitoring'),
        url(r'^admin/manual_cleanup/(?P<model>[a-zA-Z0-9_ ]*)', ManualCleanupFormView.as_view(), name='manual_cleanup'),
    ]
Exemplo n.º 2
0
    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
"""

from django.conf.urls import url

from omaha.views import UpdateView
from omaha.views_admin import StatisticsView, StatisticsDetailView, RequestListView, AppRequestDetailView, TimezoneView

urlpatterns = [
    url(r'^service/update2$', UpdateView.as_view(), name='update'),
    url(r'^admin/statistics/$',
        StatisticsView.as_view(),
        name='omaha_statistics'),
    url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/$',
        StatisticsDetailView.as_view(),
        name='omaha_statistics_detail'),
    url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/requests/$',
        RequestListView.as_view(),
        name='omaha_request_list'),
    url(r'^admin/statistics/requests/(?P<pk>\d+)/$',
        AppRequestDetailView.as_view(),
        name='omaha_request_detail'),
    url(r'^admin/set_timezone/$', TimezoneView.as_view(), name='set_timezone'),
]
Exemplo n.º 3
0
    LiveStatisticsView,
    VersionsUsageView,
    RequestListView,
    AppRequestDetailView,
    PreferenceFormView,
    MonitoringFormView,
    ManualCleanupFormView,
)


urlpatterns = [
    url(r'^service/update2$', UpdateView.as_view(), name='update'),
    url(r'^tbproxy/usagestats', UsageStatsView.as_view(), name='usage_stats'),
]


if settings.IS_PRIVATE:
    urlpatterns += [
        url(r'^admin/statistics/$', StatisticsView.as_view(), name='omaha_statistics'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/$', StatisticsDetailView.as_view(),
            name='omaha_statistics_detail'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/live/$', LiveStatisticsView.as_view(),
            name='omaha_live_statistics'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/requests/$', RequestListView.as_view(), name='omaha_request_list'),
        url(r'^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/usage/$', VersionsUsageView.as_view(), name='omaha_version_usage'),
        url(r'^admin/statistics/requests/(?P<pk>\d+)/$', AppRequestDetailView.as_view(), name='omaha_request_detail'),
        url(r'^admin/preferences/(?P<section>[a-zA-Z0-9_ ]*)', PreferenceFormView.as_view(), name='set_preferences'),
        url(r'^admin/monitoring/', MonitoringFormView.as_view(), name='monitoring'),
        url(r'^admin/manual_cleanup/(?P<model>[a-zA-Z0-9_ ]*)', ManualCleanupFormView.as_view(), name='manual_cleanup'),
    ]
Exemplo n.º 4
0
    StatisticsDetailView,
    RequestListView,
    AppRequestDetailView,
    PreferenceFormView,
    MonitoringFormView,
    ManualCleanupFormView,
)


urlpatterns = [url(r"^service/update2$", UpdateView.as_view(), name="update")]


if settings.IS_PRIVATE:
    urlpatterns += [
        url(r"^admin/statistics/$", StatisticsView.as_view(), name="omaha_statistics"),
        url(
            r"^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/$",
            StatisticsDetailView.as_view(),
            name="omaha_statistics_detail",
        ),
        url(
            r"^admin/statistics/(?P<name>[a-zA-Z0-9_ ]+)/requests/$",
            RequestListView.as_view(),
            name="omaha_request_list",
        ),
        url(r"^admin/statistics/requests/(?P<pk>\d+)/$", AppRequestDetailView.as_view(), name="omaha_request_detail"),
        url(r"^admin/preferences/(?P<section>[a-zA-Z0-9_ ]*)", PreferenceFormView.as_view(), name="set_preferences"),
        url(r"^admin/monitoring/", MonitoringFormView.as_view(), name="monitoring"),
        url(r"^admin/manual_cleanup/(?P<model>[a-zA-Z0-9_ ]*)", ManualCleanupFormView.as_view(), name="manual_cleanup"),
    ]