Jan Dittberner
0c7bb79109
- implement new form osusers.forms.AddSshPublicKeyForm - move message texts from osusers.admin to osusers.forms - add new view osusers.views.AddSshPublicKey - add new URL patter 'add_ssh_key' to osusers.urls - add new template osusers/sshpublickey_create.html - link from hosting package detail template to 'add_ssh_key' - add changelog entry for new feature
22 lines
507 B
Python
22 lines
507 B
Python
"""
|
|
This module defines the URL patterns for operating system user related views.
|
|
|
|
"""
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import (
|
|
AddSshPublicKey,
|
|
SetOsUserPassword,
|
|
)
|
|
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^(?P<slug>[\w0-9@.+-_]+)/setpassword$', SetOsUserPassword.as_view(),
|
|
name='set_osuser_password'),
|
|
url(r'^(?P<package>\d+)/add-ssh-key$', AddSshPublicKey.as_view(),
|
|
name='add_ssh_key'),
|
|
)
|