Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
proto3
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
protokollsystem
proto3
Commits
3aa5cf16
Commit
3aa5cf16
authored
Mar 4, 2017
by
Administrator
Browse files
Options
Downloads
Patches
Plain Diff
Compatibility to python 3.5
parent
76cd4c23
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
server.py
+1
-1
1 addition, 1 deletion
server.py
utils.py
+0
-1
0 additions, 1 deletion
utils.py
views/forms.py
+0
-2
0 additions, 2 deletions
views/forms.py
with
1 addition
and
4 deletions
server.py
+
1
−
1
View file @
3aa5cf16
...
@@ -1223,7 +1223,7 @@ def make_scheduler():
...
@@ -1223,7 +1223,7 @@ def make_scheduler():
def
uwsgi_timer
(
signum
):
def
uwsgi_timer
(
signum
):
if
signum
==
0
:
if
signum
==
0
:
check_and_send_reminders
()
check_and_send_reminders
()
except
ModuleNotFound
Error
:
except
Import
Error
:
print
(
"
uwsgi not found, falling back to apscheduler for cron-like tasks
"
)
print
(
"
uwsgi not found, falling back to apscheduler for cron-like tasks
"
)
def
make_scheduler
(
app
,
config
,
function
):
def
make_scheduler
(
app
,
config
,
function
):
scheduler
=
BackgroundScheduler
()
scheduler
=
BackgroundScheduler
()
...
...
This diff is collapsed.
Click to expand it.
utils.py
+
0
−
1
View file @
3aa5cf16
...
@@ -176,7 +176,6 @@ def check_ip_in_networks(networks_string):
...
@@ -176,7 +176,6 @@ def check_ip_in_networks(networks_string):
address
=
ipaddress
.
ip_address
(
request
.
remote_addr
)
address
=
ipaddress
.
ip_address
(
request
.
remote_addr
)
if
address
==
ipaddress
.
ip_address
(
"
127.0.0.1
"
)
and
"
X-Real-Ip
"
in
request
.
headers
:
if
address
==
ipaddress
.
ip_address
(
"
127.0.0.1
"
)
and
"
X-Real-Ip
"
in
request
.
headers
:
address
=
ipaddress
.
ip_address
(
request
.
headers
[
"
X-Real-Ip
"
])
address
=
ipaddress
.
ip_address
(
request
.
headers
[
"
X-Real-Ip
"
])
print
(
address
)
try
:
try
:
for
network_string
in
networks_string
.
split
(
"
,
"
):
for
network_string
in
networks_string
.
split
(
"
,
"
):
network
=
ipaddress
.
ip_network
(
network_string
.
strip
())
network
=
ipaddress
.
ip_network
(
network_string
.
strip
())
...
...
This diff is collapsed.
Click to expand it.
views/forms.py
+
0
−
2
View file @
3aa5cf16
...
@@ -69,13 +69,11 @@ class IPNetworkField(Field):
...
@@ -69,13 +69,11 @@ class IPNetworkField(Field):
def
_value
(
self
):
def
_value
(
self
):
if
self
.
raw_data
:
if
self
.
raw_data
:
print
(
"
raw_data in _value
"
,
self
.
raw_data
)
return
"
"
.
join
(
self
.
raw_data
)
return
"
"
.
join
(
self
.
raw_data
)
else
:
else
:
return
self
.
data
and
str
(
self
.
data
)
or
""
return
self
.
data
and
str
(
self
.
data
)
or
""
def
process_formdata
(
self
,
valuelist
):
def
process_formdata
(
self
,
valuelist
):
print
(
"
valuelist in process_formdata
"
,
valuelist
)
if
valuelist
:
if
valuelist
:
data_str
=
valuelist
[
0
]
data_str
=
valuelist
[
0
]
result_parts
=
[]
result_parts
=
[]
...
...
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