1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-30 18:15:21 +00:00
Commit graph

120 commits

Author SHA1 Message Date
Real-Gecko
5ab22ba947 Added accounts test(moved from admin)
Actuall added admin tests
2020-05-29 15:47:13 +06:00
Real-Gecko
83b1dde673 Added admin app unit tests 2020-05-29 12:46:25 +06:00
Real-Gecko
85929b5327 Fixe migrations for new deployments 2020-05-28 18:19:25 +06:00
Real-Gecko
3d0493537f Added 'instances:clone_instances' permission
Replaces 'can_clone_instances' user attribute
2020-05-28 11:20:23 +06:00
Real-Gecko
a62daad87b Added change password permission
Replaces SHOW_PROFILE_EDIT_PASSWORD option
Can be set on per user or per group basis
2020-05-27 18:46:37 +06:00
Real-Gecko
27f62dff6c Added admin application
- Manage users
- Manage groups
- Manage logs
2020-05-27 18:24:06 +06:00
Real-Gecko
38befa4362 Added django-login-required-middleware
Thus eliminating need for login_requred decorator on every view
2020-05-27 12:43:29 +06:00
Real-Gecko
618d88f1c4 Fix default admin user
- Fix error: RelatedObjectDoesNotExist: User has no userattributes.
  "instances/views.py", line 162, in check_user_quota
2020-05-25 16:39:34 +06:00
catborise
f37d6601e1 create admin user while migrating 2020-04-17 14:03:42 +03:00
catborise
4d40de1b55 Python3 & Django 2.2 Migration - Fix & Updates 2020-03-16 16:59:45 +03:00
catborise
a6f7618854 convert django.core.urlresolver to django.urls. fix i18n. fix identation 2020-01-24 10:09:46 +03:00
catborise
828a271789 pep8 style code corrections 2019-09-10 09:48:31 +03:00
catborise
b18290794e Translate, indentation and typo fixes 2019-07-31 11:03:48 +03:00
catborise
25e6381fc9 add Compute instances tab. Minimal invasion. minimal change. keep structure 2018-09-28 13:33:21 +03:00
Ing. Jan KRCMAR
01ace81c32 Merge remote-tracking branch 'retspen/master' into merge
Conflicts:
	instances/templates/instance.html
	instances/urls.py
	instances/views.py
2018-08-21 09:50:29 +02:00
catborise
aa32d826d9 django on_delete statement is must after than 2018-08-08 14:50:58 +03:00
catborise
aba92e30b5 x character converted to × 2018-08-01 17:18:51 +03:00
catborise
858d1f87d5 integer_validator causes import problem. it removed 2018-07-30 09:24:29 +03:00
Ing. Jan KRCMAR
b909b9d0f1 Merge remote-tracking branch 'retspen/master' into upgrade_django 2018-07-26 12:44:22 +02:00
Ing. Jan KRCMAR
9f7ec62226 accounts: add public key check 2018-07-26 11:33:12 +02:00
catborise
bdfdd9238f Correction of requirements 2018-07-18 11:41:34 +03:00
catborise
ace30ca952 Libxml2 converted to lxml, django framework upgrade to 1.11.x and some bug fixes 2018-06-27 10:20:51 +03:00
Ing. Jan KRCMAR
43a8fb6dc1 add accounts view style list. configurable via settings.VIEW_ACCOUNTS_STYLE 2018-05-15 14:22:10 +02:00
Ing. Jan KRCMAR
8d46bd40fd create_user_block.html fix broken dom 2018-05-15 14:11:31 +02:00
Ing. Jan KRCMAR
6e5e10594c SHOW_PROFILE_EDIT_PASSWORD, SHOW_ACCESS_ROOT_PASSWORD, SHOW_ACCESS_SSH_KEYS in settings.py are not inherited in templates. they are now forwarded directly into views. 2018-05-07 10:51:23 +02:00
Ing. Jan KRCMAR
748a79d9db accounts/templates/account.html fix missig tr in table 2018-03-08 10:34:52 +01:00
Ing. Jan KRCMAR
fdca3cef9c account view now displays user public keys 2017-11-15 12:55:05 +01:00
Ing. Jan KRCMAR
96674221b4 add migration userattributes.can_clone_instances dafaults to True 2017-10-26 10:10:52 +02:00
Ing. Jan KRCMAR
b7cd731fda UserAttributes.default_instances moved to django.conf.settings.NEW_USER_DEFAULT_INSTANCES 2017-10-05 08:08:04 +02:00
Ing. Jan KRCMAR
b095a77da5 configure_user() moved from class MyRemoteUserBackend to class UserAttributes, as static factory.
call configure_user() while adding user from form
2017-07-18 15:05:30 +02:00
Ing. Jan KRCMAR
f2e1273f85 fix profile/sshkeys form. empty public keys broke the page 2017-06-27 10:29:41 +02:00
Ing. Jan KRCMAR
fdf383a647 added SHOW_ACCESS_ROOT_PASSWORD, SHOW_ACCESS_SSH_KEYS, SHOW_PROFILE_EDIT_PASSWORD -- hides specific forms 2017-06-27 09:22:09 +02:00
Ing. Jan KRCMAR
3e709cd253 accounts/views: do not redirect to profile, if user wants to see self 2017-06-06 15:07:02 +02:00
Ing. Jan KRCMAR
14b0751930 UserAttributes can_clone_instances defaults to True 2017-03-31 14:33:03 +02:00
Ing. Jan KRCMAR
fe89af9d8f using custom accounts.backends.MyRemoteUserBackend, which adds default instances and attributes for user
create_missing_userattributes removed from accounts view
2017-03-31 14:29:27 +02:00
Ing. Jan KRCMAR
a3a572a8a8 Fixed: Conflicting migrations detected (0004_userinstance_is_vnc, 0007_auto_20160426_0635 in accounts) 2016-09-12 11:02:01 +02:00
Daniel Rieper
29b722ff41 Merge branch 'master' of https://github.com/honza801/webvirtcloud
Conflicts:
	instances/templates/instance.html
	instances/views.py
2016-07-29 13:05:54 +02:00
Ing. Jan KRCMAR
3666ff0738 settings.ALLOW_EMPTY_PASSWORD added. allows to create user withnout password. useful with SSO authentication. 2016-06-02 13:39:18 +02:00
Valentin Samir
7efbfec17f Add an option to allow an user to change VNC settings 2016-05-09 12:09:21 +02:00
Jan Krcmar
9327cf36c4 accounts view sorts users by username 2016-05-06 14:39:52 +02:00
Jan Krcmar
8de4c6b131 /accounts view creates userattributes automatically 2016-04-26 08:50:58 +02:00
Jan Krcmar
25529835b5 set default UserAttributes to instances=1, vcpus=1, memory=2048, disk=20 2016-04-26 08:36:14 +02:00
Jan Krcmar
db1ab88f51 Merge remote-tracking branch 'retspen/master'
Conflicts:
	conf/requirements.txt
2016-04-21 13:34:27 +02:00
Benjamin Renard
e1d3be17f1 Fix pep8 errors 2016-04-16 15:06:39 +02:00
Jan Krcmar
f8e681dbf4 added user disk quota limit
added quota warning in instance page
2016-03-31 13:12:52 +02:00
Jan Krcmar
27030113fb account max mamory label Max memory (MB), added MB 2016-03-23 13:24:14 +01:00
Jan Krcmar
317c2a85ae user can now clone instances, admin can specify user quotas (instances,cpus,memory)
user can only select predefined instance names, mac and disk names are selected automatically
2016-03-23 09:00:42 +01:00
Jan Krcmar
de5cb19913 class UserAddForm: remove is_staff, is_superuser 2016-03-23 08:53:29 +01:00
Jan Krcmar
9832e662a8 account create_user_instance form sorts instances by name 2016-03-21 10:24:09 +01:00
Jan Krcmar
71c6161291 accounts/edit added is_staff and is_superuser checkboxes
list all users (previously staff and admins were not displayed)
2016-02-09 11:16:36 +01:00
Jan Krcmar
8deb844c35 adding new instance to user checks existing instances assigned to user 2016-01-19 15:43:56 +01:00
Jan Krcmar
6151792d9b allow multiple owners of single instance. this is controlled by settings.ALLOW_INSTANCE_MULTIPLE_OWNER 2016-01-15 10:12:03 +01:00
Jan Krcmar
dac974ddab request.user.is_authenticated() substitued for @login_required decorator
settings.LOGIN_URL = /accounts/login
2015-12-22 15:09:02 +01:00
Jan Krcmar
ae4fdcec92 added class MyRemoteUserBackend(RemoteUserBackend) giving all authenticated users superuser flag 2015-12-22 15:06:19 +01:00
Retspen
2d1f72a7e1 Added models and telmplate for sshkeys 2015-05-27 14:10:57 +03:00
Retspen
871e04fb03 Fixed some bugs 2015-05-13 09:42:20 +03:00
Retspen
981eb65fac Fixed default account 2015-05-07 17:00:11 +03:00
Retspen
2aa5558df7 Fixed pep8 2015-04-06 10:51:50 +03:00
Retspen
b4e8da8671 Resoved problem with app template 2015-04-02 16:20:46 +03:00
Retspen
9484b11c41 DB changes 2015-04-02 14:24:28 +03:00
Retspen
ea41412aac Move tempates 2015-04-02 11:48:40 +03:00
Retspen
8b39d4e429 Adde urls for app 2015-04-02 09:37:46 +03:00
Retspen
56f840c893 Fixed pep8 2015-03-27 17:12:15 +02:00
Retspen
6604aa9d11 Fixed refer from logs to accouts admin 2015-03-26 16:03:12 +02:00
Retspen
1f68e8c5ed Added migration 2015-03-25 11:36:37 +02:00
Retspen
9497eb7c89 Added profile page 2015-03-24 14:45:38 +02:00
Retspen
02ae7336ea Refactor users page 2015-03-18 17:13:44 +02:00
Retspen
29b05745ad Added users page 2015-03-02 10:52:07 +02:00
Retspen
cbba654538 Add fixtures 2015-02-27 15:56:10 +02:00
Retspen
4d48e79341 Initial commit 2015-02-27 10:53:51 +02:00