##// END OF EJS Templates
routing: fixed depracated patterns for routes matching using /d
super-admin -
r5099:5122f321 default
parent child Browse files
Show More
@@ -611,7 +611,7 b' def admin_routes(config):'
611 # user management
611 # user management
612 config.add_route(
612 config.add_route(
613 name='user_edit',
613 name='user_edit',
614 pattern='/users/{user_id:\d+}/edit',
614 pattern=r'/users/{user_id:\d+}/edit',
615 user_route=True)
615 user_route=True)
616 config.add_view(
616 config.add_view(
617 UsersView,
617 UsersView,
@@ -621,7 +621,7 b' def admin_routes(config):'
621
621
622 config.add_route(
622 config.add_route(
623 name='user_edit_advanced',
623 name='user_edit_advanced',
624 pattern='/users/{user_id:\d+}/edit/advanced',
624 pattern=r'/users/{user_id:\d+}/edit/advanced',
625 user_route=True)
625 user_route=True)
626 config.add_view(
626 config.add_view(
627 UsersView,
627 UsersView,
@@ -631,7 +631,7 b' def admin_routes(config):'
631
631
632 config.add_route(
632 config.add_route(
633 name='user_edit_global_perms',
633 name='user_edit_global_perms',
634 pattern='/users/{user_id:\d+}/edit/global_permissions',
634 pattern=r'/users/{user_id:\d+}/edit/global_permissions',
635 user_route=True)
635 user_route=True)
636 config.add_view(
636 config.add_view(
637 UsersView,
637 UsersView,
@@ -641,7 +641,7 b' def admin_routes(config):'
641
641
642 config.add_route(
642 config.add_route(
643 name='user_edit_global_perms_update',
643 name='user_edit_global_perms_update',
644 pattern='/users/{user_id:\d+}/edit/global_permissions/update',
644 pattern=r'/users/{user_id:\d+}/edit/global_permissions/update',
645 user_route=True)
645 user_route=True)
646 config.add_view(
646 config.add_view(
647 UsersView,
647 UsersView,
@@ -651,7 +651,7 b' def admin_routes(config):'
651
651
652 config.add_route(
652 config.add_route(
653 name='user_update',
653 name='user_update',
654 pattern='/users/{user_id:\d+}/update',
654 pattern=r'/users/{user_id:\d+}/update',
655 user_route=True)
655 user_route=True)
656 config.add_view(
656 config.add_view(
657 UsersView,
657 UsersView,
@@ -661,7 +661,7 b' def admin_routes(config):'
661
661
662 config.add_route(
662 config.add_route(
663 name='user_delete',
663 name='user_delete',
664 pattern='/users/{user_id:\d+}/delete',
664 pattern=r'/users/{user_id:\d+}/delete',
665 user_route=True)
665 user_route=True)
666 config.add_view(
666 config.add_view(
667 UsersView,
667 UsersView,
@@ -671,7 +671,7 b' def admin_routes(config):'
671
671
672 config.add_route(
672 config.add_route(
673 name='user_enable_force_password_reset',
673 name='user_enable_force_password_reset',
674 pattern='/users/{user_id:\d+}/password_reset_enable',
674 pattern=r'/users/{user_id:\d+}/password_reset_enable',
675 user_route=True)
675 user_route=True)
676 config.add_view(
676 config.add_view(
677 UsersView,
677 UsersView,
@@ -681,7 +681,7 b' def admin_routes(config):'
681
681
682 config.add_route(
682 config.add_route(
683 name='user_disable_force_password_reset',
683 name='user_disable_force_password_reset',
684 pattern='/users/{user_id:\d+}/password_reset_disable',
684 pattern=r'/users/{user_id:\d+}/password_reset_disable',
685 user_route=True)
685 user_route=True)
686 config.add_view(
686 config.add_view(
687 UsersView,
687 UsersView,
@@ -691,7 +691,7 b' def admin_routes(config):'
691
691
692 config.add_route(
692 config.add_route(
693 name='user_create_personal_repo_group',
693 name='user_create_personal_repo_group',
694 pattern='/users/{user_id:\d+}/create_repo_group',
694 pattern=r'/users/{user_id:\d+}/create_repo_group',
695 user_route=True)
695 user_route=True)
696 config.add_view(
696 config.add_view(
697 UsersView,
697 UsersView,
@@ -702,7 +702,7 b' def admin_routes(config):'
702 # user notice
702 # user notice
703 config.add_route(
703 config.add_route(
704 name='user_notice_dismiss',
704 name='user_notice_dismiss',
705 pattern='/users/{user_id:\d+}/notice_dismiss',
705 pattern=r'/users/{user_id:\d+}/notice_dismiss',
706 user_route=True)
706 user_route=True)
707 config.add_view(
707 config.add_view(
708 UsersView,
708 UsersView,
@@ -713,7 +713,7 b' def admin_routes(config):'
713 # user auth tokens
713 # user auth tokens
714 config.add_route(
714 config.add_route(
715 name='edit_user_auth_tokens',
715 name='edit_user_auth_tokens',
716 pattern='/users/{user_id:\d+}/edit/auth_tokens',
716 pattern=r'/users/{user_id:\d+}/edit/auth_tokens',
717 user_route=True)
717 user_route=True)
718 config.add_view(
718 config.add_view(
719 UsersView,
719 UsersView,
@@ -723,7 +723,7 b' def admin_routes(config):'
723
723
724 config.add_route(
724 config.add_route(
725 name='edit_user_auth_tokens_view',
725 name='edit_user_auth_tokens_view',
726 pattern='/users/{user_id:\d+}/edit/auth_tokens/view',
726 pattern=r'/users/{user_id:\d+}/edit/auth_tokens/view',
727 user_route=True)
727 user_route=True)
728 config.add_view(
728 config.add_view(
729 UsersView,
729 UsersView,
@@ -733,7 +733,7 b' def admin_routes(config):'
733
733
734 config.add_route(
734 config.add_route(
735 name='edit_user_auth_tokens_add',
735 name='edit_user_auth_tokens_add',
736 pattern='/users/{user_id:\d+}/edit/auth_tokens/new',
736 pattern=r'/users/{user_id:\d+}/edit/auth_tokens/new',
737 user_route=True)
737 user_route=True)
738 config.add_view(
738 config.add_view(
739 UsersView,
739 UsersView,
@@ -742,7 +742,7 b' def admin_routes(config):'
742
742
743 config.add_route(
743 config.add_route(
744 name='edit_user_auth_tokens_delete',
744 name='edit_user_auth_tokens_delete',
745 pattern='/users/{user_id:\d+}/edit/auth_tokens/delete',
745 pattern=r'/users/{user_id:\d+}/edit/auth_tokens/delete',
746 user_route=True)
746 user_route=True)
747 config.add_view(
747 config.add_view(
748 UsersView,
748 UsersView,
@@ -752,7 +752,7 b' def admin_routes(config):'
752 # user ssh keys
752 # user ssh keys
753 config.add_route(
753 config.add_route(
754 name='edit_user_ssh_keys',
754 name='edit_user_ssh_keys',
755 pattern='/users/{user_id:\d+}/edit/ssh_keys',
755 pattern=r'/users/{user_id:\d+}/edit/ssh_keys',
756 user_route=True)
756 user_route=True)
757 config.add_view(
757 config.add_view(
758 UsersView,
758 UsersView,
@@ -762,7 +762,7 b' def admin_routes(config):'
762
762
763 config.add_route(
763 config.add_route(
764 name='edit_user_ssh_keys_generate_keypair',
764 name='edit_user_ssh_keys_generate_keypair',
765 pattern='/users/{user_id:\d+}/edit/ssh_keys/generate',
765 pattern=r'/users/{user_id:\d+}/edit/ssh_keys/generate',
766 user_route=True)
766 user_route=True)
767 config.add_view(
767 config.add_view(
768 UsersView,
768 UsersView,
@@ -772,7 +772,7 b' def admin_routes(config):'
772
772
773 config.add_route(
773 config.add_route(
774 name='edit_user_ssh_keys_add',
774 name='edit_user_ssh_keys_add',
775 pattern='/users/{user_id:\d+}/edit/ssh_keys/new',
775 pattern=r'/users/{user_id:\d+}/edit/ssh_keys/new',
776 user_route=True)
776 user_route=True)
777 config.add_view(
777 config.add_view(
778 UsersView,
778 UsersView,
@@ -781,7 +781,7 b' def admin_routes(config):'
781
781
782 config.add_route(
782 config.add_route(
783 name='edit_user_ssh_keys_delete',
783 name='edit_user_ssh_keys_delete',
784 pattern='/users/{user_id:\d+}/edit/ssh_keys/delete',
784 pattern=r'/users/{user_id:\d+}/edit/ssh_keys/delete',
785 user_route=True)
785 user_route=True)
786 config.add_view(
786 config.add_view(
787 UsersView,
787 UsersView,
@@ -791,7 +791,7 b' def admin_routes(config):'
791 # user emails
791 # user emails
792 config.add_route(
792 config.add_route(
793 name='edit_user_emails',
793 name='edit_user_emails',
794 pattern='/users/{user_id:\d+}/edit/emails',
794 pattern=r'/users/{user_id:\d+}/edit/emails',
795 user_route=True)
795 user_route=True)
796 config.add_view(
796 config.add_view(
797 UsersView,
797 UsersView,
@@ -801,7 +801,7 b' def admin_routes(config):'
801
801
802 config.add_route(
802 config.add_route(
803 name='edit_user_emails_add',
803 name='edit_user_emails_add',
804 pattern='/users/{user_id:\d+}/edit/emails/new',
804 pattern=r'/users/{user_id:\d+}/edit/emails/new',
805 user_route=True)
805 user_route=True)
806 config.add_view(
806 config.add_view(
807 UsersView,
807 UsersView,
@@ -810,7 +810,7 b' def admin_routes(config):'
810
810
811 config.add_route(
811 config.add_route(
812 name='edit_user_emails_delete',
812 name='edit_user_emails_delete',
813 pattern='/users/{user_id:\d+}/edit/emails/delete',
813 pattern=r'/users/{user_id:\d+}/edit/emails/delete',
814 user_route=True)
814 user_route=True)
815 config.add_view(
815 config.add_view(
816 UsersView,
816 UsersView,
@@ -820,7 +820,7 b' def admin_routes(config):'
820 # user IPs
820 # user IPs
821 config.add_route(
821 config.add_route(
822 name='edit_user_ips',
822 name='edit_user_ips',
823 pattern='/users/{user_id:\d+}/edit/ips',
823 pattern=r'/users/{user_id:\d+}/edit/ips',
824 user_route=True)
824 user_route=True)
825 config.add_view(
825 config.add_view(
826 UsersView,
826 UsersView,
@@ -830,7 +830,7 b' def admin_routes(config):'
830
830
831 config.add_route(
831 config.add_route(
832 name='edit_user_ips_add',
832 name='edit_user_ips_add',
833 pattern='/users/{user_id:\d+}/edit/ips/new',
833 pattern=r'/users/{user_id:\d+}/edit/ips/new',
834 user_route_with_default=True) # enabled for default user too
834 user_route_with_default=True) # enabled for default user too
835 config.add_view(
835 config.add_view(
836 UsersView,
836 UsersView,
@@ -839,7 +839,7 b' def admin_routes(config):'
839
839
840 config.add_route(
840 config.add_route(
841 name='edit_user_ips_delete',
841 name='edit_user_ips_delete',
842 pattern='/users/{user_id:\d+}/edit/ips/delete',
842 pattern=r'/users/{user_id:\d+}/edit/ips/delete',
843 user_route_with_default=True) # enabled for default user too
843 user_route_with_default=True) # enabled for default user too
844 config.add_view(
844 config.add_view(
845 UsersView,
845 UsersView,
@@ -849,7 +849,7 b' def admin_routes(config):'
849 # user perms
849 # user perms
850 config.add_route(
850 config.add_route(
851 name='edit_user_perms_summary',
851 name='edit_user_perms_summary',
852 pattern='/users/{user_id:\d+}/edit/permissions_summary',
852 pattern=r'/users/{user_id:\d+}/edit/permissions_summary',
853 user_route=True)
853 user_route=True)
854 config.add_view(
854 config.add_view(
855 UsersView,
855 UsersView,
@@ -859,7 +859,7 b' def admin_routes(config):'
859
859
860 config.add_route(
860 config.add_route(
861 name='edit_user_perms_summary_json',
861 name='edit_user_perms_summary_json',
862 pattern='/users/{user_id:\d+}/edit/permissions_summary/json',
862 pattern=r'/users/{user_id:\d+}/edit/permissions_summary/json',
863 user_route=True)
863 user_route=True)
864 config.add_view(
864 config.add_view(
865 UsersView,
865 UsersView,
@@ -870,7 +870,7 b' def admin_routes(config):'
870 # user user groups management
870 # user user groups management
871 config.add_route(
871 config.add_route(
872 name='edit_user_groups_management',
872 name='edit_user_groups_management',
873 pattern='/users/{user_id:\d+}/edit/groups_management',
873 pattern=r'/users/{user_id:\d+}/edit/groups_management',
874 user_route=True)
874 user_route=True)
875 config.add_view(
875 config.add_view(
876 UsersView,
876 UsersView,
@@ -880,7 +880,7 b' def admin_routes(config):'
880
880
881 config.add_route(
881 config.add_route(
882 name='edit_user_groups_management_updates',
882 name='edit_user_groups_management_updates',
883 pattern='/users/{user_id:\d+}/edit/edit_user_groups_management/updates',
883 pattern=r'/users/{user_id:\d+}/edit/edit_user_groups_management/updates',
884 user_route=True)
884 user_route=True)
885 config.add_view(
885 config.add_view(
886 UsersView,
886 UsersView,
@@ -890,7 +890,7 b' def admin_routes(config):'
890 # user audit logs
890 # user audit logs
891 config.add_route(
891 config.add_route(
892 name='edit_user_audit_logs',
892 name='edit_user_audit_logs',
893 pattern='/users/{user_id:\d+}/edit/audit', user_route=True)
893 pattern=r'/users/{user_id:\d+}/edit/audit', user_route=True)
894 config.add_view(
894 config.add_view(
895 UsersView,
895 UsersView,
896 attr='user_audit_logs',
896 attr='user_audit_logs',
@@ -899,7 +899,7 b' def admin_routes(config):'
899
899
900 config.add_route(
900 config.add_route(
901 name='edit_user_audit_logs_download',
901 name='edit_user_audit_logs_download',
902 pattern='/users/{user_id:\d+}/edit/audit/download', user_route=True)
902 pattern=r'/users/{user_id:\d+}/edit/audit/download', user_route=True)
903 config.add_view(
903 config.add_view(
904 UsersView,
904 UsersView,
905 attr='user_audit_logs_download',
905 attr='user_audit_logs_download',
@@ -909,7 +909,7 b' def admin_routes(config):'
909 # user caches
909 # user caches
910 config.add_route(
910 config.add_route(
911 name='edit_user_caches',
911 name='edit_user_caches',
912 pattern='/users/{user_id:\d+}/edit/caches',
912 pattern=r'/users/{user_id:\d+}/edit/caches',
913 user_route=True)
913 user_route=True)
914 config.add_view(
914 config.add_view(
915 UsersView,
915 UsersView,
@@ -919,7 +919,7 b' def admin_routes(config):'
919
919
920 config.add_route(
920 config.add_route(
921 name='edit_user_caches_update',
921 name='edit_user_caches_update',
922 pattern='/users/{user_id:\d+}/edit/caches/update',
922 pattern=r'/users/{user_id:\d+}/edit/caches/update',
923 user_route=True)
923 user_route=True)
924 config.add_view(
924 config.add_view(
925 UsersView,
925 UsersView,
@@ -1057,7 +1057,7 b' def includeme(config):'
1057 # pr global redirect
1057 # pr global redirect
1058 config.add_route(
1058 config.add_route(
1059 name='pull_requests_global_0', # backward compat
1059 name='pull_requests_global_0', # backward compat
1060 pattern=ADMIN_PREFIX + '/pull_requests/{pull_request_id:\d+}')
1060 pattern=ADMIN_PREFIX + r'/pull_requests/{pull_request_id:\d+}')
1061 config.add_view(
1061 config.add_view(
1062 AdminMainView,
1062 AdminMainView,
1063 attr='pull_requests',
1063 attr='pull_requests',
@@ -1065,7 +1065,7 b' def includeme(config):'
1065
1065
1066 config.add_route(
1066 config.add_route(
1067 name='pull_requests_global_1', # backward compat
1067 name='pull_requests_global_1', # backward compat
1068 pattern=ADMIN_PREFIX + '/pull-requests/{pull_request_id:\d+}')
1068 pattern=ADMIN_PREFIX + r'/pull-requests/{pull_request_id:\d+}')
1069 config.add_view(
1069 config.add_view(
1070 AdminMainView,
1070 AdminMainView,
1071 attr='pull_requests',
1071 attr='pull_requests',
@@ -1073,7 +1073,7 b' def includeme(config):'
1073
1073
1074 config.add_route(
1074 config.add_route(
1075 name='pull_requests_global',
1075 name='pull_requests_global',
1076 pattern=ADMIN_PREFIX + '/pull-request/{pull_request_id:\d+}')
1076 pattern=ADMIN_PREFIX + r'/pull-request/{pull_request_id:\d+}')
1077 config.add_view(
1077 config.add_view(
1078 AdminMainView,
1078 AdminMainView,
1079 attr='pull_requests',
1079 attr='pull_requests',
@@ -637,7 +637,7 b' def includeme(config):'
637 # Pull Requests
637 # Pull Requests
638 config.add_route(
638 config.add_route(
639 name='pullrequest_show',
639 name='pullrequest_show',
640 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}',
640 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}',
641 repo_route=True)
641 repo_route=True)
642 config.add_view(
642 config.add_view(
643 RepoPullRequestsView,
643 RepoPullRequestsView,
@@ -709,7 +709,7 b' def includeme(config):'
709
709
710 config.add_route(
710 config.add_route(
711 name='pullrequest_update',
711 name='pullrequest_update',
712 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/update',
712 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/update',
713 repo_route=True, repo_forbid_when_archived=True)
713 repo_route=True, repo_forbid_when_archived=True)
714 config.add_view(
714 config.add_view(
715 RepoPullRequestsView,
715 RepoPullRequestsView,
@@ -719,7 +719,7 b' def includeme(config):'
719
719
720 config.add_route(
720 config.add_route(
721 name='pullrequest_merge',
721 name='pullrequest_merge',
722 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/merge',
722 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/merge',
723 repo_route=True, repo_forbid_when_archived=True)
723 repo_route=True, repo_forbid_when_archived=True)
724 config.add_view(
724 config.add_view(
725 RepoPullRequestsView,
725 RepoPullRequestsView,
@@ -729,7 +729,7 b' def includeme(config):'
729
729
730 config.add_route(
730 config.add_route(
731 name='pullrequest_delete',
731 name='pullrequest_delete',
732 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/delete',
732 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/delete',
733 repo_route=True, repo_forbid_when_archived=True)
733 repo_route=True, repo_forbid_when_archived=True)
734 config.add_view(
734 config.add_view(
735 RepoPullRequestsView,
735 RepoPullRequestsView,
@@ -739,7 +739,7 b' def includeme(config):'
739
739
740 config.add_route(
740 config.add_route(
741 name='pullrequest_comment_create',
741 name='pullrequest_comment_create',
742 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment',
742 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment',
743 repo_route=True)
743 repo_route=True)
744 config.add_view(
744 config.add_view(
745 RepoPullRequestsView,
745 RepoPullRequestsView,
@@ -749,7 +749,7 b' def includeme(config):'
749
749
750 config.add_route(
750 config.add_route(
751 name='pullrequest_comment_edit',
751 name='pullrequest_comment_edit',
752 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/edit',
752 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/edit',
753 repo_route=True, repo_accepted_types=['hg', 'git'])
753 repo_route=True, repo_accepted_types=['hg', 'git'])
754 config.add_view(
754 config.add_view(
755 RepoPullRequestsView,
755 RepoPullRequestsView,
@@ -759,7 +759,7 b' def includeme(config):'
759
759
760 config.add_route(
760 config.add_route(
761 name='pullrequest_comment_delete',
761 name='pullrequest_comment_delete',
762 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/delete',
762 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comment/{comment_id}/delete',
763 repo_route=True, repo_accepted_types=['hg', 'git'])
763 repo_route=True, repo_accepted_types=['hg', 'git'])
764 config.add_view(
764 config.add_view(
765 RepoPullRequestsView,
765 RepoPullRequestsView,
@@ -769,7 +769,7 b' def includeme(config):'
769
769
770 config.add_route(
770 config.add_route(
771 name='pullrequest_comments',
771 name='pullrequest_comments',
772 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comments',
772 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/comments',
773 repo_route=True)
773 repo_route=True)
774 config.add_view(
774 config.add_view(
775 RepoPullRequestsView,
775 RepoPullRequestsView,
@@ -779,7 +779,7 b' def includeme(config):'
779
779
780 config.add_route(
780 config.add_route(
781 name='pullrequest_todos',
781 name='pullrequest_todos',
782 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/todos',
782 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/todos',
783 repo_route=True)
783 repo_route=True)
784 config.add_view(
784 config.add_view(
785 RepoPullRequestsView,
785 RepoPullRequestsView,
@@ -789,7 +789,7 b' def includeme(config):'
789
789
790 config.add_route(
790 config.add_route(
791 name='pullrequest_drafts',
791 name='pullrequest_drafts',
792 pattern='/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/drafts',
792 pattern=r'/{repo_name:.*?[^/]}/pull-request/{pull_request_id:\d+}/drafts',
793 repo_route=True)
793 repo_route=True)
794 config.add_view(
794 config.add_view(
795 RepoPullRequestsView,
795 RepoPullRequestsView,
@@ -16,10 +16,7 b''
16 # RhodeCode Enterprise Edition, including its added features, Support services,
16 # RhodeCode Enterprise Edition, including its added features, Support services,
17 # and proprietary license terms, please see https://rhodecode.com/licenses/
17 # and proprietary license terms, please see https://rhodecode.com/licenses/
18
18
19
20 from rhodecode.apps._base.navigation import NavigationRegistry
21 from rhodecode.apps._base import ADMIN_PREFIX
19 from rhodecode.apps._base import ADMIN_PREFIX
22 from rhodecode.lib.utils2 import str2bool
23
20
24
21
25 def admin_routes(config):
22 def admin_routes(config):
@@ -30,7 +27,7 b' def admin_routes(config):'
30
27
31 config.add_route(
28 config.add_route(
32 name='user_group_members_data',
29 name='user_group_members_data',
33 pattern='/user_groups/{user_group_id:\d+}/members',
30 pattern=r'/user_groups/{user_group_id:\d+}/members',
34 user_group_route=True)
31 user_group_route=True)
35 config.add_view(
32 config.add_view(
36 UserGroupsView,
33 UserGroupsView,
@@ -41,7 +38,7 b' def admin_routes(config):'
41 # user groups perms
38 # user groups perms
42 config.add_route(
39 config.add_route(
43 name='edit_user_group_perms_summary',
40 name='edit_user_group_perms_summary',
44 pattern='/user_groups/{user_group_id:\d+}/edit/permissions_summary',
41 pattern=r'/user_groups/{user_group_id:\d+}/edit/permissions_summary',
45 user_group_route=True)
42 user_group_route=True)
46 config.add_view(
43 config.add_view(
47 UserGroupsView,
44 UserGroupsView,
@@ -51,7 +48,7 b' def admin_routes(config):'
51
48
52 config.add_route(
49 config.add_route(
53 name='edit_user_group_perms_summary_json',
50 name='edit_user_group_perms_summary_json',
54 pattern='/user_groups/{user_group_id:\d+}/edit/permissions_summary/json',
51 pattern=r'/user_groups/{user_group_id:\d+}/edit/permissions_summary/json',
55 user_group_route=True)
52 user_group_route=True)
56 config.add_view(
53 config.add_view(
57 UserGroupsView,
54 UserGroupsView,
@@ -62,7 +59,7 b' def admin_routes(config):'
62 # user groups edit
59 # user groups edit
63 config.add_route(
60 config.add_route(
64 name='edit_user_group',
61 name='edit_user_group',
65 pattern='/user_groups/{user_group_id:\d+}/edit',
62 pattern=r'/user_groups/{user_group_id:\d+}/edit',
66 user_group_route=True)
63 user_group_route=True)
67 config.add_view(
64 config.add_view(
68 UserGroupsView,
65 UserGroupsView,
@@ -73,7 +70,7 b' def admin_routes(config):'
73 # user groups update
70 # user groups update
74 config.add_route(
71 config.add_route(
75 name='user_groups_update',
72 name='user_groups_update',
76 pattern='/user_groups/{user_group_id:\d+}/update',
73 pattern=r'/user_groups/{user_group_id:\d+}/update',
77 user_group_route=True)
74 user_group_route=True)
78 config.add_view(
75 config.add_view(
79 UserGroupsView,
76 UserGroupsView,
@@ -83,7 +80,7 b' def admin_routes(config):'
83
80
84 config.add_route(
81 config.add_route(
85 name='edit_user_group_global_perms',
82 name='edit_user_group_global_perms',
86 pattern='/user_groups/{user_group_id:\d+}/edit/global_permissions',
83 pattern=r'/user_groups/{user_group_id:\d+}/edit/global_permissions',
87 user_group_route=True)
84 user_group_route=True)
88 config.add_view(
85 config.add_view(
89 UserGroupsView,
86 UserGroupsView,
@@ -93,7 +90,7 b' def admin_routes(config):'
93
90
94 config.add_route(
91 config.add_route(
95 name='edit_user_group_global_perms_update',
92 name='edit_user_group_global_perms_update',
96 pattern='/user_groups/{user_group_id:\d+}/edit/global_permissions/update',
93 pattern=r'/user_groups/{user_group_id:\d+}/edit/global_permissions/update',
97 user_group_route=True)
94 user_group_route=True)
98 config.add_view(
95 config.add_view(
99 UserGroupsView,
96 UserGroupsView,
@@ -103,7 +100,7 b' def admin_routes(config):'
103
100
104 config.add_route(
101 config.add_route(
105 name='edit_user_group_perms',
102 name='edit_user_group_perms',
106 pattern='/user_groups/{user_group_id:\d+}/edit/permissions',
103 pattern=r'/user_groups/{user_group_id:\d+}/edit/permissions',
107 user_group_route=True)
104 user_group_route=True)
108 config.add_view(
105 config.add_view(
109 UserGroupsView,
106 UserGroupsView,
@@ -113,7 +110,7 b' def admin_routes(config):'
113
110
114 config.add_route(
111 config.add_route(
115 name='edit_user_group_perms_update',
112 name='edit_user_group_perms_update',
116 pattern='/user_groups/{user_group_id:\d+}/edit/permissions/update',
113 pattern=r'/user_groups/{user_group_id:\d+}/edit/permissions/update',
117 user_group_route=True)
114 user_group_route=True)
118 config.add_view(
115 config.add_view(
119 UserGroupsView,
116 UserGroupsView,
@@ -123,7 +120,7 b' def admin_routes(config):'
123
120
124 config.add_route(
121 config.add_route(
125 name='edit_user_group_advanced',
122 name='edit_user_group_advanced',
126 pattern='/user_groups/{user_group_id:\d+}/edit/advanced',
123 pattern=r'/user_groups/{user_group_id:\d+}/edit/advanced',
127 user_group_route=True)
124 user_group_route=True)
128 config.add_view(
125 config.add_view(
129 UserGroupsView,
126 UserGroupsView,
@@ -133,7 +130,7 b' def admin_routes(config):'
133
130
134 config.add_route(
131 config.add_route(
135 name='edit_user_group_advanced_sync',
132 name='edit_user_group_advanced_sync',
136 pattern='/user_groups/{user_group_id:\d+}/edit/advanced/sync',
133 pattern=r'/user_groups/{user_group_id:\d+}/edit/advanced/sync',
137 user_group_route=True)
134 user_group_route=True)
138 config.add_view(
135 config.add_view(
139 UserGroupsView,
136 UserGroupsView,
@@ -144,7 +141,7 b' def admin_routes(config):'
144 # user groups delete
141 # user groups delete
145 config.add_route(
142 config.add_route(
146 name='user_groups_delete',
143 name='user_groups_delete',
147 pattern='/user_groups/{user_group_id:\d+}/delete',
144 pattern=r'/user_groups/{user_group_id:\d+}/delete',
148 user_group_route=True)
145 user_group_route=True)
149 config.add_view(
146 config.add_view(
150 UserGroupsView,
147 UserGroupsView,
@@ -156,4 +153,3 b' def admin_routes(config):'
156 def includeme(config):
153 def includeme(config):
157 # main admin routes
154 # main admin routes
158 config.include(admin_routes, route_prefix=ADMIN_PREFIX)
155 config.include(admin_routes, route_prefix=ADMIN_PREFIX)
159
General Comments 0
You need to be logged in to leave comments. Login now