You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by jm...@apache.org on 2020/01/16 00:56:00 UTC
svn commit: r1872846 - /incubator/public/trunk/clutch2report.py
Author: jmclean
Date: Thu Jan 16 00:56:00 2020
New Revision: 1872846
URL: http://svn.apache.org/viewvc?rev=1872846&view=rev
Log:
Can't publish in wiki format anymore
Modified:
incubator/public/trunk/clutch2report.py
Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1872846&r1=1872845&r2=1872846&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Thu Jan 16 00:56:00 2020
@@ -151,20 +151,6 @@ correct this? Has the VP, Brand approved
"""
-def push(pagename, reportFile):
- print("Publishing " + pagename)
- name = input("Username for wiki.apache.org/incubator: ")
- password = getpass.getpass("Password for wiki.apache.org/incubator: ")
- report = open(reportFile, 'r')
- reportcontent = report.read(-1)
- report.close()
- srcwiki = xmlrpc.client.ServerProxy("https://wiki.apache.org/incubator/?action=xmlrpc2")
- token = srcwiki.getAuthToken(name, password)
-
- pushresults = srcwiki.system.multicall([{'methodName':'applyAuthToken', 'params': [token]},
- {'methodName':'putPage', 'params': [pagename, reportcontent]}])
- print(pushresults)
-
def cliargs():
parser = argparse.ArgumentParser(description='Create (and optionally push) a template for an incubator report.')
parser.add_argument('--upload', action='store_true',
@@ -193,14 +179,14 @@ def gen_shepherd_assignments(projects, m
for shepherd in shepherds_data:
shepherds[shepherd['apache_id']] = shepherd
- # Generate and return the wikified list of assignments.
+ # Generate and return the list of assignments.
lines = []
for podling_id, shepherd_id in report.items():
podling_name = projects[podling_id]['fullName']
shepherd_name = '[none]'
if shepherd_id in shepherds:
shepherd_name = shepherds[shepherd_id]['name']
- lines.append("||{} ||{} ||".format(shepherd_name, podling_name))
+ lines.append("{} {}".format(shepherd_name, podling_name))
lines.sort()
return "\n".join(lines)
@@ -253,10 +239,8 @@ def main():
# Close `Report Content` section.
output.write("\n")
-
+
output.close()
- if options.upload:
- push("{0}{1}".format(calendar.month_name[month], year), 'report.txt')
if __name__ == "__main__":
main()
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org