Пример #1
0
custom_report_urls = [
    CustomProjectReportDispatcher.url_pattern(),
]

urlpatterns = [
    ConfigurableReport.url_pattern(),
    CustomConfigurableReportDispatcher.url_pattern(),

    # Report Builder
    url(r'^builder/select_source/$', ReportBuilderDataSourceSelect.as_view(),
        name=ReportBuilderDataSourceSelect.urlname),
    url(r'^builder/configure/$', ConfigureReport.as_view(), name=ConfigureReport.urlname),
    url(r'^builder/preview/(?P<data_source>[\w\-]+)/$', ReportPreview.as_view(), name=ReportPreview.urlname),
    url(r'^builder/edit/(?P<report_id>[\w\-]+)/$', EditReportInBuilder.as_view(), name='edit_report_in_builder'),
    url(r'builder/subscribe/pricing/$', ReportBuilderPaywallPricing.as_view(),
        name=ReportBuilderPaywallPricing.urlname),
    url(r'builder/subscribe/activating_subscription/$', ReportBuilderPaywallActivatingSubscription.as_view(),
        name=ReportBuilderPaywallActivatingSubscription.urlname),

    url(r'^$', default, name="reports_home"),
    url(r'^saved/', MySavedReportsView.as_view(), name=MySavedReportsView.urlname),
    url(r'^saved_reports', old_saved_reports, name='old_saved_reports'),

    url(r'^case_data/(?P<case_id>[\w\-]+)/$', CaseDetailsView.as_view(), name=CaseDetailsView.urlname),
    url(r'^case_data/(?P<case_id>[\w\-]+)/forms/$', case_forms, name="single_case_forms"),
    url(r'^case_data/(?P<case_id>[\w\-]+)/attachments/$',
        CaseAttachmentsView.as_view(), name=CaseAttachmentsView.urlname),
    url(r'^case_data/(?P<case_id>[\w\-]+)/view/xml/$', case_xml, name="single_case_xml"),
    url(r'^case_data/(?P<case_id>[\w\-]+)/properties/$', case_property_names, name="case_property_names"),
    url(r'^case_data/(?P<case_id>[\w\-]+)/edit/$', edit_case_view, name="edit_case"),
Пример #2
0
    url(r'^builder/configure/table/$',
        ConfigureTableReport.as_view(),
        name="configure_table_report"),
    url(r'^builder/configure/worker/$',
        ConfigureWorkerReport.as_view(),
        name="configure_worker_report"),
    url(r'^builder/configure/map/$',
        ConfigureMapReport.as_view(),
        name="configure_map_report"),

    # Shared Report Builder V1/V2 urls
    url(r'^builder/edit/(?P<report_id>[\w\-]+)/$',
        EditReportInBuilder.as_view(),
        name='edit_report_in_builder'),
    url(r'builder/subscribe/pricing/$',
        ReportBuilderPaywallPricing.as_view(),
        name=ReportBuilderPaywallPricing.urlname),
    url(r'builder/subscribe/activating_subscription/$',
        ReportBuilderPaywallActivatingSubscription.as_view(),
        name=ReportBuilderPaywallActivatingSubscription.urlname),
    url(r'^$', default, name="reports_home"),
    url(r'^saved/',
        MySavedReportsView.as_view(),
        name=MySavedReportsView.urlname),
    url(r'^saved_reports', old_saved_reports, name='old_saved_reports'),
    url(r'^case_data/(?P<case_id>[\w\-]+)/$',
        CaseDetailsView.as_view(),
        name=CaseDetailsView.urlname),
    url(r'^case_data/(?P<case_id>[\w\-]+)/forms/$',
        case_forms,
        name="single_case_forms"),
Пример #3
0
custom_report_urls = [
    CustomProjectReportDispatcher.url_pattern(),
]

urlpatterns = [
    ConfigurableReportView.url_pattern(),
    CustomConfigurableReportDispatcher.url_pattern(),

    # Report Builder
    url(r'^builder/select_source/$', ReportBuilderDataSourceSelect.as_view(),
        name=ReportBuilderDataSourceSelect.urlname),
    url(r'^builder/configure/$', ConfigureReport.as_view(), name=ConfigureReport.urlname),
    url(r'^builder/preview/(?P<data_source>[\w\-]+)/$', ReportPreview.as_view(), name=ReportPreview.urlname),
    url(r'^builder/edit/(?P<report_id>[\w\-]+)/$', EditReportInBuilder.as_view(), name='edit_report_in_builder'),
    url(r'builder/subscribe/pricing/$', ReportBuilderPaywallPricing.as_view(),
        name=ReportBuilderPaywallPricing.urlname),
    url(r'builder/subscribe/activating_subscription/$', ReportBuilderPaywallActivatingSubscription.as_view(),
        name=ReportBuilderPaywallActivatingSubscription.urlname),

    url(r'^$', MySavedReportsView.as_view(), name="reports_home"),
    url(r'^saved/', MySavedReportsView.as_view(), name=MySavedReportsView.urlname),
    url(r'^saved_reports', MySavedReportsView.as_view(), name="old_saved_reports"),

    url(r'^case_data/(?P<case_id>[\w\-]+)/$', CaseDataView.as_view(), name=CaseDataView.urlname),
    url(r'^case_data/(?P<case_id>[\w\-]+)/forms/$', case_forms, name="single_case_forms"),
    url(r'^case_data/(?P<case_id>[\w\-]+)/attachments/$',
        CaseAttachmentsView.as_view(), name=CaseAttachmentsView.urlname),
    url(r'^case_data/(?P<case_id>[\w\-]+)/view/xml/$', case_xml, name="single_case_xml"),
    url(r'^case_data/(?P<case_id>[\w\-]+)/properties/$', case_property_names, name="case_property_names"),
    url(r'^case_data/(?P<case_id>[\w\-]+)/history/$', download_case_history, name="download_case_history"),