Beispiel #1
0
# These will all start with /addon/<addon_id>/submit/
submit_patterns = patterns(
    '',
    url('^$', lambda r, addon_id: redirect('devhub.submit.7', addon_id)),
    url('^3$', views.submit_describe, name='devhub.submit.3'),
    url('^4$', views.submit_media, name='devhub.submit.4'),
    url('^5$', views.submit_license, name='devhub.submit.5'),
    url('^6$', views.submit_select_review, name='devhub.submit.6'),
    url('^7$', views.submit_done, name='devhub.submit.7'),
    url('^bump$', views.submit_bump, name='devhub.submit.bump'),
)

submit_apps_patterns = patterns(
    '',
    url('^3$', use_apps(views.submit_describe), name='devhub.submit_apps.3'),
    url('^4$', use_apps(views.submit_media), name='devhub.submit_apps.4'),
    url('^5$', use_apps(views.submit_done), name='devhub.submit_apps.5'),
    url('^bump$', use_apps(views.submit_bump), name='devhub.submit_apps.bump'),
)

# These will all start with /theme/<slug>/
theme_detail_patterns = patterns(
    '',
    url(
        '^$', lambda r, addon_id: redirect(
            'devhub.themes.edit', addon_id, permanent=True)),
    url('^delete$', views.delete, name='devhub.themes.delete'),
    # Upload url here to satisfy CSRF.
    url('^edit/upload/'
        '(?P<upload_type>persona_header|persona_footer)$',
Beispiel #2
0
PACKAGE_NAME = '(?P<package_name>[_\w]+)'


# These will all start with /addon/<addon_id>/submit/
submit_patterns = patterns('',
    url('^$', lambda r, addon_id: redirect('devhub.submit.7', addon_id)),
    url('^3$', views.submit_describe, name='devhub.submit.3'),
    url('^4$', views.submit_media, name='devhub.submit.4'),
    url('^5$', views.submit_license, name='devhub.submit.5'),
    url('^6$', views.submit_select_review, name='devhub.submit.6'),
    url('^7$', views.submit_done, name='devhub.submit.7'),
    url('^bump$', views.submit_bump, name='devhub.submit.bump'),
)

submit_apps_patterns = patterns('',
    url('^3$', use_apps(views.submit_describe), name='devhub.submit_apps.3'),
    url('^4$', use_apps(views.submit_media), name='devhub.submit_apps.4'),
    url('^5$', use_apps(views.submit_done), name='devhub.submit_apps.5'),
    url('^bump$', use_apps(views.submit_bump), name='devhub.submit_apps.bump'),
)

def marketplace_patterns(prefix):
    return patterns('',
        url('^1$', views.marketplace_paypal,
            name='devhub.%s.market.1' % prefix),
        url('^2$', views.marketplace_pricing,
            name='devhub.%s.market.2' % prefix),
        url('^3$', views.marketplace_upsell,
            name='devhub.%s.market.3' % prefix),
        url('^4$', views.marketplace_confirm,
            name='devhub.%s.market.4' % prefix),
Beispiel #3
0
# These will all start with /addon/<addon_id>/submit/
submit_patterns = patterns(
    "",
    url("^$", lambda r, addon_id: redirect("devhub.submit.7", addon_id)),
    url("^3$", views.submit_describe, name="devhub.submit.3"),
    url("^4$", views.submit_media, name="devhub.submit.4"),
    url("^5$", views.submit_license, name="devhub.submit.5"),
    url("^6$", views.submit_select_review, name="devhub.submit.6"),
    url("^7$", views.submit_done, name="devhub.submit.7"),
    url("^bump$", views.submit_bump, name="devhub.submit.bump"),
)

submit_apps_patterns = patterns(
    "",
    url("^3$", use_apps(views.submit_describe), name="devhub.submit_apps.3"),
    url("^4$", use_apps(views.submit_media), name="devhub.submit_apps.4"),
    url("^5$", use_apps(views.submit_done), name="devhub.submit_apps.5"),
    url("^bump$", use_apps(views.submit_bump), name="devhub.submit_apps.bump"),
)


def marketplace_patterns(prefix):
    return patterns(
        "",
        url("^1$", views.marketplace_paypal, name="devhub.%s.market.1" % prefix),
        url("^2$", views.marketplace_pricing, name="devhub.%s.market.2" % prefix),
        url("^3$", views.marketplace_upsell, name="devhub.%s.market.3" % prefix),
        url("^4$", views.marketplace_confirm, name="devhub.%s.market.4" % prefix),
    )
Beispiel #4
0
        # Redirect people who have /addons/ instead of /addon/.
        ('^addons/\d+/.*',
         lambda r: redirect(r.path.replace('addons', 'addon', 1))),

        # Add-on submission
        url('^addon/submit/$',
            lambda r: redirect('devhub.submit.1', permanent=True)),
        url('^addon/submit/1$', views.submit, name='devhub.submit.1'),
        url('^addon/submit/2$', views.submit_addon, name='devhub.submit.2'),

        # Web App submission
        url('^apps/submit/$',
            lambda r: redirect('devhub.submit_apps.1', permanent=True)),
        url('^apps/submit/1$',
            use_apps(views.submit),
            name='devhub.submit_apps.1'),
        url('^apps/submit/2$',
            use_apps(views.submit_addon),
            name='devhub.submit_apps.2'),

        # Standalone validator:
        url('^addon/validate/?$',
            views.validate_addon,
            name='devhub.validate_addon'),

        # Standalone compatibility checker:
        url('^addon/check-compatibility$',
            views.check_addon_compatibility,
            name='devhub.check_addon_compatibility'),
        url(r'^addon/check-compatibility/application_versions\.json$',
Beispiel #5
0
    # Redirect people who have /addons/ instead of /addon/.
    ('^addons/\d+/.*',
     lambda r: redirect(r.path.replace('addons', 'addon', 1))),

    # Add-on submission
    url('^addon/submit/$',
        lambda r: redirect('devhub.submit.1', permanent=True)),
    url('^addon/submit/1$', views.submit, name='devhub.submit.1'),
    url('^addon/submit/2$', views.submit_addon,
        name='devhub.submit.2'),

    # Web App submission
    url('^apps/submit/$',
        lambda r: redirect('devhub.submit_apps.1', permanent=True)),
    url('^apps/submit/1$', use_apps(views.submit), name='devhub.submit_apps.1'),
    url('^apps/submit/2$', use_apps(views.submit_addon),
        name='devhub.submit_apps.2'),

    # Standalone validator:
    url('^addon/validate/?$', views.validate_addon,
        name='devhub.validate_addon'),

    # Standalone compatibility checker:
    url('^addon/check-compatibility$', views.check_addon_compatibility,
        name='devhub.check_addon_compatibility'),
    url(r'^addon/check-compatibility/application_versions\.json$',
        views.compat_application_versions,
        name='devhub.compat_application_versions'),

    # Add-on packager