Example #1
0
    # details
    url(r'^voir/(?P<user_name>.+)/$',
        MemberDetail.as_view(),
        name='member-detail'),

    # modification
    url(r'^parametres/profil/$', UpdateMember.as_view(), name='update-member'),
    url(r'^parametres/github/$',
        UpdateGitHubToken.as_view(),
        name='update-github'),
    url(r'^parametres/github/supprimer/$',
        remove_github_token,
        name='remove-github'),
    url(r'^parametres/profil/maj_avatar/$',
        UpdateAvatarMember.as_view(),
        name='update-avatar-member'),
    url(r'^parametres/compte/$',
        UpdatePasswordMember.as_view(),
        name='update-password-member'),
    url(r'^parametres/user/$',
        UpdateUsernameEmailMember.as_view(),
        name='update-username-email-member'),

    # moderation
    url(r'^profil/karmatiser/$', modify_karma, name='member-modify-karma'),
    url(r'^profil/modifier/(?P<user_pk>\d+)/$',
        modify_profile,
        name='member-modify-profile'),
    url(r'^parametres/mini_profil/(?P<user_name>.+)/$',
        settings_mini_profile,
Example #2
0
from zds.member.views import MemberList, MemberDetail, UpdateMember, UpdateAvatarMember, UpdatePasswordMember, \
    UpdateUsernameEmailMember, RegisterView, SendValidationEmailView, add_oldtuto, remove_oldtuto, modify_karma, \
    modify_profile, settings_mini_profile, member_from_ip, tutorials, articles, settings_promote, login_view, \
    logout_view, forgot_password, new_password, active_account, generate_token_account, unregister, warning_unregister

urlpatterns = [
    # list
    url(r'^$', MemberList.as_view(), name='member-list'),

    # details
    url(r'^voir/(?P<user_name>.+)/$', MemberDetail.as_view(), name='member-detail'),

    # modification
    url(r'^parametres/profil/$', UpdateMember.as_view(), name='update-member'),
    url(r'^parametres/profil/maj_avatar/$', UpdateAvatarMember.as_view(), name='update-avatar-member'),
    url(r'^parametres/compte/$', UpdatePasswordMember.as_view(), name='update-password-member'),
    url(r'^parametres/user/$', UpdateUsernameEmailMember.as_view(), name='update-username-email-member'),

    # old tuto
    url(r'^profil/lier/$', add_oldtuto, name='member-add-oldtuto'),
    url(r'^profil/delier/$', remove_oldtuto, name='member-remove-oldtuto'),

    # moderation
    url(r'^profil/karmatiser/$', modify_karma, name='member-modify-karma'),
    url(r'^profil/modifier/(?P<user_pk>\d+)/$', modify_profile, name='member-modify-profile'),
    url(r'^parametres/mini_profil/(?P<user_name>.+)/$', settings_mini_profile, name='member-settings-mini-profile'),
    url(r'^profil/multi/(?P<ip_address>.+)/$', member_from_ip, name='member-from-ip'),

    # tutorials and articles
    url(r'^tutoriels/$', tutorials, name='member-tutorials'),
Example #3
0
    AddBannedEmailProvider, remove_banned_email_provider, check_new_email_provider, MembersWithProviderList, \
    HatsSettings, RequestedHatsList, HatRequestDetail, add_hat, remove_hat, solve_hat_request, HatsList, HatDetail, \
    SolvedHatRequestsList

urlpatterns = [
    # list
    url(r'^$', MemberList.as_view(), name='member-list'),

    # details
    url(r'^voir/(?P<user_name>.+)/$', MemberDetail.as_view(), name='member-detail'),

    # modification
    url(r'^parametres/profil/$', UpdateMember.as_view(), name='update-member'),
    url(r'^parametres/github/$', UpdateGitHubToken.as_view(), name='update-github'),
    url(r'^parametres/github/supprimer/$', remove_github_token, name='remove-github'),
    url(r'^parametres/profil/maj_avatar/$', UpdateAvatarMember.as_view(), name='update-avatar-member'),
    url(r'^parametres/compte/$', UpdatePasswordMember.as_view(), name='update-password-member'),
    url(r'^parametres/user/$', UpdateUsernameEmailMember.as_view(), name='update-username-email-member'),

    # moderation
    url(r'^profil/karmatiser/$', modify_karma, name='member-modify-karma'),
    url(r'^profil/modifier/(?P<user_pk>\d+)/$', modify_profile, name='member-modify-profile'),
    url(r'^parametres/mini_profil/(?P<user_name>.+)/$', settings_mini_profile, name='member-settings-mini-profile'),
    url(r'^profil/multi/(?P<ip_address>.+)/$', member_from_ip, name='member-from-ip'),

    # email providers
    url(r'^fournisseurs-email/nouveaux/$', NewEmailProvidersList.as_view(), name='new-email-providers'),
    url(r'^fournisseurs-email/nouveaux/verifier/(?P<provider_pk>\d+)/$', check_new_email_provider,
        name='check-new-email-provider'),
    url(r'^fournisseurs-email/bannis/$', BannedEmailProvidersList.as_view(), name='banned-email-providers'),
    url(r'^fournisseurs-email/bannis/ajouter/$', AddBannedEmailProvider.as_view(), name='add-banned-email-provider'),
Example #4
0
    # list
    re_path(r'^$', MemberList.as_view(), name='member-list'),

    # details
    re_path(r'^voir/(?P<user_name>.+)/$',
            MemberDetail.as_view(), name='member-detail'),

    # modification
    re_path(r'^parametres/profil/$',
            UpdateMember.as_view(), name='update-member'),
    re_path(r'^parametres/github/$',
            UpdateGitHubToken.as_view(), name='update-github'),
    re_path(r'^parametres/github/supprimer/$',
            remove_github_token, name='remove-github'),
    re_path(r'^parametres/profil/maj_avatar/$',
            UpdateAvatarMember.as_view(), name='update-avatar-member'),
    re_path(r'^parametres/compte/$', UpdatePasswordMember.as_view(),
            name='update-password-member'),
    re_path(r'^parametres/user/$', UpdateUsernameEmailMember.as_view(),
            name='update-username-email-member'),

    # moderation
    re_path(r'^profil/signaler/(?P<profile_pk>\d+)/$', CreateProfileReportView.as_view(), name='report-profile'),
    re_path(r'^profil/resoudre/(?P<alert_pk>\d+)/$', SolveProfileReportView.as_view(), name='solve-profile-alert'),
    re_path(r'^profil/karmatiser/$', modify_karma, name='member-modify-karma'),
    re_path(r'^profil/modifier/(?P<user_pk>\d+)/$',
            modify_profile, name='member-modify-profile'),
    re_path(r'^parametres/mini_profil/(?P<user_name>.+)/$',
            settings_mini_profile, name='member-settings-mini-profile'),
    re_path(r'^profil/multi/(?P<ip_address>.+)/$',
            member_from_ip, name='member-from-ip'),