Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
2cae7884
Commit
2cae7884
authored
Sep 09, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rest Gateway: Cleanup
Removed MessageList
parent
4a566c1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
MessageList.py
rest-gateway/app/MessageList.py
+0
-25
debug.py
rest-gateway/app/rest/debug.py
+0
-5
No files found.
rest-gateway/app/MessageList.py
deleted
100644 → 0
View file @
4a566c1b
from
__future__
import
annotations
class
MessageList
:
__instance
=
None
_messages
=
[]
@
staticmethod
def
getInstance
()
->
MessageList
:
""" Static access method. """
if
MessageList
.
__instance
==
None
:
MessageList
.
__instance
=
MessageList
()
return
MessageList
.
__instance
def
__init__
(
self
):
""" Virtually private constructor. """
if
MessageList
.
__instance
!=
None
:
raise
Exception
(
"This class is a singleton!"
)
else
:
MessageList
.
__instance
=
self
def
appendMessage
(
self
,
message
):
self
.
_messages
.
append
(
message
)
def
getMessages
(
self
):
return
self
.
_messages
\ No newline at end of file
rest-gateway/app/rest/debug.py
View file @
2cae7884
from
MessageList
import
MessageList
from
flask
import
request
def
echo
():
return
request
.
json
def
get_messages
():
messages
=
MessageList
.
getInstance
()
.
getMessages
()
return
str
(
messages
)
Write
Preview
Markdown
is supported
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