Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aca6c74c
authored
Feb 15, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: lint models.py
parent
b18fbe92
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
one/migrations/0013_auto__chg_field_sshkey_key__chg_field_userclouddetails_ssh_private_key.py
+0
-0
one/models.py
+0
-0
store/views.py
+3
-3
No files found.
one/migrations/0013_auto__chg_field_sshkey_key__chg_field_userclouddetails_ssh_private_key.py
0 → 100644
View file @
aca6c74c
This diff is collapsed.
Click to expand it.
one/models.py
View file @
aca6c74c
This diff is collapsed.
Click to expand it.
store/views.py
View file @
aca6c74c
...
@@ -13,7 +13,7 @@ import base64
...
@@ -13,7 +13,7 @@ import base64
def
estabilish_store_user
(
request
,
user
):
def
estabilish_store_user
(
request
,
user
):
try
:
try
:
details
=
request
.
user
.
userclouddetails_set
.
all
()[
0
]
details
=
request
.
user
.
cloud_details
password
=
details
.
smb_password
password
=
details
.
smb_password
quota
=
details
.
disk_quota
*
1024
quota
=
details
.
disk_quota
*
1024
key_list
=
[]
key_list
=
[]
...
@@ -34,7 +34,7 @@ def index(request):
...
@@ -34,7 +34,7 @@ def index(request):
try
:
try
:
auth
=
request
.
POST
[
'auth'
]
auth
=
request
.
POST
[
'auth'
]
try
:
try
:
details
=
request
.
user
.
userclouddetails_set
.
all
()[
0
]
details
=
request
.
user
.
cloud_details
password
=
details
.
smb_password
password
=
details
.
smb_password
key_list
=
[]
key_list
=
[]
for
key
in
request
.
user
.
sshkey_set
.
all
():
for
key
in
request
.
user
.
sshkey_set
.
all
():
...
@@ -182,7 +182,7 @@ def gui(request):
...
@@ -182,7 +182,7 @@ def gui(request):
return
render_to_response
(
'store/gui.html'
,
RequestContext
(
request
,
{
'username'
:
user
,
'host'
:
StoreApi
.
get_host
()}))
return
render_to_response
(
'store/gui.html'
,
RequestContext
(
request
,
{
'username'
:
user
,
'host'
:
StoreApi
.
get_host
()}))
elif
request
.
method
==
'POST'
:
elif
request
.
method
==
'POST'
:
try
:
try
:
details
=
request
.
user
.
userclouddetails_set
.
all
()[
0
]
details
=
request
.
user
.
cloud_details
password
=
details
.
smb_password
password
=
details
.
smb_password
key_list
=
[]
key_list
=
[]
for
key
in
request
.
user
.
sshkey_set
.
all
():
for
key
in
request
.
user
.
sshkey_set
.
all
():
...
...
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