Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aflitos, Saulo Alves
ibrowser
Commits
b4fe81a5
Commit
b4fe81a5
authored
Apr 10, 2015
by
Saulo
Browse files
Update behaviour.py
parent
68896129
Changes
1
Hide whitespace changes
Inline
Side-by-side
behaviour.py
View file @
b4fe81a5
...
...
@@ -244,7 +244,8 @@ def load_config( args ):
SECRET_KEY
=
open
(
SECRET_FILE
,
'rb'
).
read
().
strip
()
print
"SECRET KEY "
,
repr
(
SECRET_KEY
)
variables
[
'SECRET_KEY'
]
=
SECRET_KEY
variables
[
'SECRET_FILE'
]
=
SECRET_FILE
variables
[
'SECRET_KEY'
]
=
SECRET_KEY
...
...
@@ -281,7 +282,7 @@ def load_config( args ):
print
"LOGIN ENABLED"
print
"INITIALIZING DB"
USER_DATABASE_FILE
=
os
.
path
.
join
(
INFOLDER
,
'users.sqlite'
)
variables
[
'USER_DATABASE_FILE'
]
=
USER_DATABASE_FILE
app
.
config
[
'DATABASE_FILE'
]
=
USER_DATABASE_FILE
app
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'sqlite:///'
+
app
.
config
[
'DATABASE_FILE'
]
...
...
@@ -370,7 +371,7 @@ def run_action(args):
if
action
==
"clean"
:
print
"cleaning"
files_to_del
=
[
app
.
config
[
"SECRET_FILE"
],
app
.
config
[
"
USER_
DATABASE_FILE"
]
]
files_to_del
=
[
app
.
config
[
"SECRET_FILE"
],
app
.
config
[
"DATABASE_FILE"
]
]
if
app
.
config
[
'HAS_LOGIN'
]:
if
app
.
config
[
"ENCRYPTION_INST"
]
is
not
None
:
...
...
Write
Preview
Supports
Markdown
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