Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
943e87e9
authored
Feb 09, 2013
by
x
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store: Fixed quota magnitude
parent
206e86c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
one/models.py
+1
-1
store/views.py
+1
-1
No files found.
one/models.py
View file @
943e87e9
...
@@ -82,7 +82,7 @@ def set_quota(sender, instance, created, **kwargs):
...
@@ -82,7 +82,7 @@ def set_quota(sender, instance, created, **kwargs):
if
not
StoreApi
.
createuser
(
instance
.
user
.
username
,
password
,
key_list
,
quota
):
if
not
StoreApi
.
createuser
(
instance
.
user
.
username
,
password
,
key_list
,
quota
):
pass
pass
else
:
else
:
StoreApi
.
set_quota
(
instance
.
user
.
username
,
instance
.
disk_quota
)
StoreApi
.
set_quota
(
instance
.
user
.
username
,
instance
.
disk_quota
*
1024
)
post_save
.
connect
(
set_quota
,
sender
=
UserCloudDetails
)
post_save
.
connect
(
set_quota
,
sender
=
UserCloudDetails
)
def
reset_keys
(
sender
,
instance
,
created
,
**
kwargs
):
def
reset_keys
(
sender
,
instance
,
created
,
**
kwargs
):
...
...
store/views.py
View file @
943e87e9
...
@@ -15,7 +15,7 @@ def estabilish_store_user(user):
...
@@ -15,7 +15,7 @@ def estabilish_store_user(user):
try
:
try
:
details
=
request
.
user
.
userclouddetails_set
.
all
()[
0
]
details
=
request
.
user
.
userclouddetails_set
.
all
()[
0
]
password
=
details
.
smb_password
password
=
details
.
smb_password
quota
=
details
.
disk_quota
quota
=
details
.
disk_quota
*
1024
key_list
=
[]
key_list
=
[]
for
key
in
request
.
user
.
sshkey_set
.
all
():
for
key
in
request
.
user
.
sshkey_set
.
all
():
key_list
.
append
(
key
.
key
)
key_list
.
append
(
key
.
key
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment