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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos.toolbox
Commits
f96b495b
Commit
f96b495b
authored
Nov 23, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettier atom feed.
parent
b14261dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
slapos/pubsub/__init__.py
slapos/pubsub/__init__.py
+1
-1
slapos/pubsub/notifier.py
slapos/pubsub/notifier.py
+6
-3
No files found.
slapos/pubsub/__init__.py
View file @
f96b495b
...
@@ -48,7 +48,7 @@ def get_feed(feed):
...
@@ -48,7 +48,7 @@ def get_feed(feed):
entries
.
append
(
Entry
(
title
=
title
,
entries
.
append
(
Entry
(
title
=
title
,
guid
=
guid
,
guid
=
guid
,
updated
=
datetime
.
fromtimestamp
(
timestamp
),
updated
=
datetime
.
fromtimestamp
(
timestamp
),
content
=
Content
(
content
),
content
=
Content
(
content
,
content_type
=
'html'
),
))
))
feed
=
Feed
(
title
=
feed_title
,
feed
=
Feed
(
title
=
feed_title
,
updated
=
datetime
.
fromtimestamp
(
feed_updated
),
updated
=
datetime
.
fromtimestamp
(
feed_updated
),
...
...
slapos/pubsub/notifier.py
View file @
f96b495b
...
@@ -41,12 +41,15 @@ def main():
...
@@ -41,12 +41,15 @@ def main():
command
.
stdin
.
close
()
command
.
stdin
.
close
()
if
command
.
wait
()
!=
0
:
if
command
.
wait
()
!=
0
:
content
=
"Failed with returncode %d and stderr %r"
%
(
content
=
(
"<p>Failed with returncode <em>%d</em>.</p>"
"<p>Standard error output is :</p><pre>%s</pre>"
)
%
(
command
.
poll
(),
command
.
poll
(),
command
.
stderr
.
read
(),
command
.
stderr
.
read
().
replace
(
'&'
,
'&'
)
\
.
replace
(
'<'
,
'<'
)
\
.
replace
(
'>'
,
'>'
),
)
)
else
:
else
:
content
=
"
Everything went well.
"
content
=
"
<p>Everything went well.</p>
"
with
open
(
args
.
logfile
[
0
],
'a'
)
as
file_
:
with
open
(
args
.
logfile
[
0
],
'a'
)
as
file_
:
cvsfile
=
csv
.
writer
(
file_
)
cvsfile
=
csv
.
writer
(
file_
)
...
...
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