Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.toolbox
Commits
1c2a9658
Commit
1c2a9658
authored
Jul 11, 2018
by
Guillaume Hervier
Committed by
Rafael Monnerat
Apr 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: Escape root title when generating OPML
/reviewed-on
nexedi/slapos.toolbox!34
parent
29e43111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
slapos/monitor/monitor.py
slapos/monitor/monitor.py
+2
-1
No files found.
slapos/monitor/monitor.py
View file @
1c2a9658
...
@@ -13,6 +13,7 @@ import ssl
...
@@ -13,6 +13,7 @@ import ssl
import
glob
import
glob
import
socket
import
socket
from
datetime
import
datetime
from
datetime
import
datetime
from
xml.sax.saxutils
import
escape
OPML_START
=
"""<?xml version="1.0" encoding="UTF-8"?>
OPML_START
=
"""<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by SlapOS -->
<!-- OPML generated by SlapOS -->
...
@@ -284,7 +285,7 @@ class Monitoring(object):
...
@@ -284,7 +285,7 @@ class Monitoring(object):
opml_content
=
OPML_START
%
{
'creation_date'
:
creation_date
,
opml_content
=
OPML_START
%
{
'creation_date'
:
creation_date
,
'modification_date'
:
modification_date
,
'modification_date'
:
modification_date
,
'outline_title'
:
'Monitoring RSS Feed list'
,
'outline_title'
:
'Monitoring RSS Feed list'
,
'root_title'
:
self
.
root_title
}
'root_title'
:
escape
(
self
.
root_title
)
}
opml_content
+=
OPML_OUTLINE_FEED
%
{
'title'
:
self
.
title
,
opml_content
+=
OPML_OUTLINE_FEED
%
{
'title'
:
self
.
title
,
'html_url'
:
self
.
public_url
+
'/feed'
,
'html_url'
:
self
.
public_url
+
'/feed'
,
...
...
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