Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
5b2798a6
Commit
5b2798a6
authored
Sep 25, 2014
by
Vidjil Team
Browse files
controllers/patient.py: log some actions
parent
73647568
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/patient.py
View file @
5b2798a6
...
...
@@ -8,11 +8,12 @@ if request.env.http_origin:
## return patient file list
##
def
info
():
log
.
info
(
'
info()'
)
log
.
info
(
'
patient (%s)'
%
request
.
vars
[
"id"
]
)
if
(
auth
.
has_permission
(
'read'
,
'patient'
,
request
.
vars
[
"id"
])
):
return
dict
(
message
=
T
(
'patient'
))
else
:
res
=
{
"message"
:
"acces denied"
}
log
.
error
(
res
)
return
gluon
.
contrib
.
simplejson
.
dumps
(
res
,
separators
=
(
','
,
':'
))
...
...
@@ -22,6 +23,7 @@ def index():
if
not
auth
.
user
:
res
=
{
"redirect"
:
"default/user/login"
}
return
gluon
.
contrib
.
simplejson
.
dumps
(
res
,
separators
=
(
','
,
':'
))
log
.
info
(
'patient list'
)
return
dict
(
message
=
T
(
''
))
...
...
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