Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cranspasswords
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Stan
Cranspasswords
Commits
fc40d2e6
Commit
fc40d2e6
authored
11 years ago
by
Daniel STAN
Browse files
Options
Downloads
Patches
Plain Diff
server: évite de bricker la bdd
Avec nawak dans le contents
parent
34aa2a64
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.py
+5
-0
5 additions, 0 deletions
server.py
with
5 additions
and
0 deletions
server.py
+
5
−
0
View file @
fc40d2e6
...
...
@@ -178,6 +178,11 @@ def _putfile(filename, roles, contents):
notification
(
u
"
Modification de %s
"
%
filename
,
corps
,
filename
,
old
)
filepath
=
getpath
(
filename
)
if
type
(
contents
)
not
in
[
unicode
,
str
]:
# fix that later
return
[
False
,
u
"
Erreur: merci de patcher votre cpasswords !
"
+
"
(contents should be encrypted str)
"
]
# Or fuck yourself
writefile
(
filepath
,
json
.
dumps
({
'
roles
'
:
roles
,
'
contents
'
:
contents
}))
return
[
True
,
u
"
Modification effectuée.
"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment