Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
076ba735
Commit
076ba735
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Move events to app package
parent
7757c12d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/__init__.py
+2
-0
2 additions, 0 deletions
app/__init__.py
app/events.py
+3
-3
3 additions, 3 deletions
app/events.py
app/main/__init__.py
+1
-1
1 addition, 1 deletion
app/main/__init__.py
with
6 additions
and
4 deletions
app/__init__.py
+
2
−
0
View file @
076ba735
...
...
@@ -23,6 +23,8 @@ def create_app(config_name):
mail
.
init_app
(
app
)
socketio
.
init_app
(
app
,
message_qeue
=
'
redis://
'
)
from
.
import
events
from
.admin
import
admin
as
admin_blueprint
app
.
register_blueprint
(
admin_blueprint
,
url_prefix
=
'
/admin
'
)
...
...
This diff is collapsed.
Click to expand it.
app/
main/
events.py
→
app/events.py
+
3
−
3
View file @
076ba735
from
flask
import
current_app
,
request
from
flask_login
import
current_user
,
login_required
from
.
.decorators
import
admin_required
from
.
.
import
db
,
socketio
from
.
.models
import
User
from
.decorators
import
admin_required
from
.
import
db
,
socketio
from
.models
import
User
import
json
import
jsonpatch
import
logging
...
...
This diff is collapsed.
Click to expand it.
app/main/__init__.py
+
1
−
1
View file @
076ba735
...
...
@@ -3,7 +3,7 @@ from flask import Blueprint
main
=
Blueprint
(
'
main
'
,
__name__
)
from
.
import
errors
,
events
,
views
from
.
import
errors
,
views
from
..models
import
Permission
...
...
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