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
114e301a
authored
Jan 23, 2013
by
x
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
random store fix
parent
a5a6b1f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
store/views.py
+4
-6
No files found.
store/views.py
View file @
114e301a
...
...
@@ -20,17 +20,15 @@ def index(request):
return
HttpResponse
(
'Can not acces to django database!'
)
if
StoreApi
.
UserExist
(
user
)
!=
True
:
#Create user
if
StoreApi
.
CreateUser
(
user
,
password
,
key_list
):
pass
else
:
if
not
StoreApi
.
CreateUser
(
user
,
password
,
key_list
):
return
HttpResponse
(
'User does not exist on store! And could not create!'
)
#UpdateAuthorizationInfo
try
:
auth
=
request
.
POST
[
'auth'
]
result
=
'ures'
result
=
UpdateAuthorizationInfo
(
user
,
password
,
key_list
)
if
not
StoreApi
.
UpdateAuthorizationInfo
(
user
,
password
,
key_list
):
return
HttpResponse
(
'Can not update authorization information!'
)
except
:
return
HttpResponse
(
'Error: '
+
result
)
pass
#Download handler
try
:
dl
=
request
.
POST
[
'dl'
]
...
...
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