2015-01-24 16:26:32 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for operating system user related views.
|
|
|
|
|
|
|
|
"""
|
2023-02-18 22:46:48 +01:00
|
|
|
from __future__ import absolute_import
|
2015-01-24 16:26:32 +01:00
|
|
|
|
2023-02-18 22:46:48 +01:00
|
|
|
from django.urls import re_path
|
2015-01-24 16:26:32 +01:00
|
|
|
|
2015-02-01 00:44:31 +01:00
|
|
|
from .views import (
|
|
|
|
AddSshPublicKey,
|
2015-02-01 01:55:09 +01:00
|
|
|
DeleteSshPublicKey,
|
|
|
|
EditSshPublicKeyComment,
|
|
|
|
ListSshPublicKeys,
|
2015-02-01 00:44:31 +01:00
|
|
|
SetOsUserPassword,
|
|
|
|
)
|
2015-01-24 16:26:32 +01:00
|
|
|
|
2015-12-19 20:11:23 +01:00
|
|
|
urlpatterns = [
|
2023-02-18 22:46:48 +01:00
|
|
|
re_path(
|
|
|
|
r"^(?P<slug>[\w0-9@.+-_]+)/setpassword$",
|
|
|
|
SetOsUserPassword.as_view(),
|
|
|
|
name="set_osuser_password",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/ssh-keys/$",
|
|
|
|
ListSshPublicKeys.as_view(),
|
|
|
|
name="list_ssh_keys",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/ssh-keys/add$",
|
|
|
|
AddSshPublicKey.as_view(),
|
|
|
|
name="add_ssh_key",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/ssh-keys/(?P<pk>\d+)/edit-comment$",
|
|
|
|
EditSshPublicKeyComment.as_view(),
|
|
|
|
name="edit_ssh_key_comment",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/ssh-keys/(?P<pk>\d+)/delete$",
|
|
|
|
DeleteSshPublicKey.as_view(),
|
|
|
|
name="delete_ssh_key",
|
|
|
|
),
|
2015-12-19 20:11:23 +01:00
|
|
|
]
|