xpcom/analysis/MDC-upload.py
author L. David Baron <dbaron@dbaron.org>
Fri, 11 Sep 2009 06:46:36 -0400
changeset 32394 d1b659f7db49191f59723ddb69354cd49dae29cb
parent 20814 6a2e65f15f480c149f478ac92d5c515f37c28df9
permissions -rw-r--r--
Add fields to nsCSSPropList.h for style struct offset and animation type. (Bug 504652) r=bzbarsky

#!/usr/bin/env python

"""
Upload a page to MDC

Usage: python MDC-upload.py <file> <MDC-path>
Please set MDC_USER and MDC_PASSWORD in the environment
"""

import os, sys, deki

wikiuser = os.environ['MDC_USER']
wikipw = os.environ['MDC_PASSWORD']

(file, wikipath) = sys.argv[1:]

wiki = deki.Deki("http://developer.mozilla.org/@api/deki/", wikiuser, wikipw)
wiki.create_page(wikipath, open(file).read(), overwrite=True)