Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sams-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
coding-at-fu
sams-classes
Commits
0a787753
There was a problem fetching the pipeline summary.
Commit
0a787753
authored
7 years ago
by
slobinger
Browse files
Options
Downloads
Plain Diff
Merge branch '36-_flaskapp-secret_key-generieren' into 'master'
Resolve "_flaskApp.secret_key generieren" Closes
#36
See merge request
!23
parents
45419539
f617f6bb
No related branches found
No related tags found
1 merge request
!23
Resolve "_flaskApp.secret_key generieren"
Pipeline
#
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sams_classes/sams_hub.py
+12
-13
12 additions, 13 deletions
sams_classes/sams_hub.py
with
12 additions
and
13 deletions
sams_classes/sams_hub.py
+
12
−
13
View file @
0a787753
from
flask
import
Flask
,
request
,
session
from
.exceptions
import
(
ManifestDefaultLanguageMissing
,
DefaultLanguageDictMissing
,
AppNotExist
,
FunctionNotExists
)
import
sys
import
os
from
typing
import
Dict
,
List
from
importlib
import
import_module
#from .exceptions import HubDirNotExist, FunctionNotExists
#from importlib import import_module
from
flask
import
Flask
,
request
,
session
from
.sams_app
import
SAMSApp
from
.exceptions
import
FunctionNotExists
from
optparse
import
Values
import
sys
from
.exceptions
import
(
ManifestDefaultLanguageMissing
,
DefaultLanguageDictMissing
,
AppNotExist
,
FunctionNotExists
)
def
eprint
(
*
args
,
**
kwargs
):
print
(
*
args
,
file
=
sys
.
stderr
,
**
kwargs
)
...
...
@@ -28,7 +27,7 @@ class SAMSHub:
self
.
_appList
=
[]
self
.
_flaskApp
=
Flask
(
name
)
self
.
_flaskApp
.
context_processor
(
self
.
_context_processor
)
self
.
_flaskApp
.
secret_key
=
'
my awesome SAMSHub secret_key
'
self
.
_flaskApp
.
secret_key
=
os
.
urandom
(
24
)
def
addApp
(
self
,
app
:
SAMSApp
=
None
,
alias
=
None
):
if
not
isinstance
(
app
,
SAMSApp
):
...
...
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