X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/cb6160df90dfcfa857e5f093fee6ab24f56755ce..ab821ded0093db5f0f2b70e161542292c4f5c7c5:/wizard/app/mediawiki.py diff --git a/wizard/app/mediawiki.py b/wizard/app/mediawiki.py index ef7c1ea..3fdec14 100644 --- a/wizard/app/mediawiki.py +++ b/wizard/app/mediawiki.py @@ -1,8 +1,12 @@ import re import distutils.version import os +import datetime +import logging +import shlex +import shutil -from wizard import app, deploy, install, shell, util +from wizard import app, deploy, install, scripts, shell, util from wizard.app import php def make_filename_regex(var): @@ -50,7 +54,12 @@ class Application(deploy.Application): match = regex.search(contents) if not match: return None return distutils.version.LooseVersion(match.group(2)[1:-1]) - def install(self, options): + def checkWeb(self, d, out=None): + page = d.fetch("/index.php?title=Main_Page") + if type(out) is list: + out.append(page) + return page.find("