Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jayesh
swh-web
Commits
f93de7b6
Commit
f93de7b6
authored
9 years ago
by
Nicolas Dandrimont
Browse files
Options
Downloads
Plain Diff
New upstream version 0.0.3
parents
8c68495e
2b27e99c
No related branches found
Branches containing commit
Tags
debian/upstream/0.0.3
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
MANIFEST.in
+1
-0
1 addition, 0 deletions
MANIFEST.in
PKG-INFO
+1
-1
1 addition, 1 deletion
PKG-INFO
swh.web.ui.egg-info/PKG-INFO
+1
-1
1 addition, 1 deletion
swh.web.ui.egg-info/PKG-INFO
swh/web/ui/main.py
+10
-2
10 additions, 2 deletions
swh/web/ui/main.py
version.txt
+1
-1
1 addition, 1 deletion
version.txt
with
14 additions
and
5 deletions
MANIFEST.in
+
1
−
0
View file @
f93de7b6
...
...
@@ -2,3 +2,4 @@ include Makefile
include requirements.txt
include version.txt
recursive-include swh/web/ui/static *
recursive-include swh/web/ui/templates *
This diff is collapsed.
Click to expand it.
PKG-INFO
+
1
−
1
View file @
f93de7b6
Metadata-Version: 1.0
Name: swh.web.ui
Version: 0.0.
2
Version: 0.0.
3
Summary: Software Heritage Web UI
Home-page: https://forge.softwareheritage.org/diffusion/DWUI/
Author: Software Heritage developers
...
...
This diff is collapsed.
Click to expand it.
swh.web.ui.egg-info/PKG-INFO
+
1
−
1
View file @
f93de7b6
Metadata-Version: 1.0
Name: swh.web.ui
Version: 0.0.
2
Version: 0.0.
3
Summary: Software Heritage Web UI
Home-page: https://forge.softwareheritage.org/diffusion/DWUI/
Author: Software Heritage developers
...
...
This diff is collapsed.
Click to expand it.
swh/web/ui/main.py
+
10
−
2
View file @
f93de7b6
...
...
@@ -4,6 +4,7 @@
# See top-level LICENSE file for more information
import
logging
import
os
from
flask
import
Flask
...
...
@@ -42,9 +43,16 @@ def read_config(config_file):
return
conf
def
load_controllers
():
"""
Load the controllers for the application
"""
from
swh.web.ui
import
controller
# flake8: noqa
def
run_from_webserver
(
environ
,
start_response
):
"""
Run the WSGI app from the webserver, loading the configuration.
"""
load_controllers
()
config_path
=
'
/etc/softwareheritage/webapp/webapp.ini
'
conf
=
read_config
(
config_path
)
...
...
@@ -52,8 +60,8 @@ def run_from_webserver(environ, start_response):
app
.
secret_key
=
conf
[
'
secret_key
'
]
app
.
config
[
'
conf
'
]
=
conf
handler
=
logging
.
StreamHandler
()
app
.
logger
.
addHandler
(
handler
)
logging
.
basicConfig
(
filename
=
os
.
path
.
join
(
conf
[
'
log_dir
'
],
'
web-ui.log
'
),
level
=
logging
.
INFO
)
return
app
(
environ
,
start_response
)
...
...
This diff is collapsed.
Click to expand it.
version.txt
+
1
−
1
View file @
f93de7b6
v0.0.2-0-g636f979
\ No newline at end of file
v0.0.3-0-g2b27e99
\ No newline at end of file
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