Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56379325
update-agora-reports
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
update-agora-reports
View Options
#!/usr/bin/env python3
# -------------------------------------------------------------
# Rhyne-Wise
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: MediaWiki automated agent
# License: BSD-2-Clause
# -------------------------------------------------------------
import
logging
import
sys
from
rhyne_wyse
import
client
,
config
from
rhyne_wyse.tasks.wiki
import
update_report
# -------------------------------------------------------------
# Application entry point
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def
run
():
global_config
=
config
.
get_config
()
site
=
client
.
connect_to_site
(
global_config
[
"wiki"
])
for
report
in
global_config
.
get
(
"reports"
,
[]):
try
:
update_report
(
site
,
logger
,
report
)
except
Exception
as
e
:
title
=
report
.
get
(
"report"
,
"<report title missing>"
)
logger
.
exception
(
f
"[update_report] for report
{
title
}
:
{
e
}
"
,
exc_info
=
e
)
if
__name__
==
"__main__"
:
logger
=
logging
.
getLogger
(
__name__
)
logger
.
addHandler
(
logging
.
StreamHandler
(
sys
.
stderr
))
logger
.
setLevel
(
logging
.
INFO
)
run
()
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Sat, Nov 7, 15:00 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4250198
Default Alt Text
update-agora-reports (1 KB)
Attached To
Mode
rRPRT Nasqueron internal reports
Attached
Detach File
Event Timeline
Log In to Comment