import distutils.version
import decorator
import shlex
+import logging
+import shutil
import wizard
-from wizard import scripts, shell, util
+from wizard import app, resolve, scripts, shell, util
_application_list = [
"mediawiki", "wordpress", "joomla", "e107", "gallery2",
extractors.update(php.extractors)
substitutions = app.make_substitutions(seed)
substitutions.update(php.substitutions)
- @property
- def install_handler(self):
- handler = install.ArgHandler("mysql", "admin", "email")
- handler.add(install.Arg("title", help="Title of your new MediaWiki install"))
- return handler
+ install_handler = install.ArgHandler("mysql", "admin", "email")
+ install_handler.add(install.Arg("title", help="Title of your new MediaWiki install"))
def checkConfig(self, deployment):
return os.path.isfile(os.path.join(deployment.location, "LocalSettings.php"))
def detectVersion(self, deployment):
if options.verbose:
if isinstance(e, app.NoSuchApplication):
print "Application %s does not exist, at %s" % (e.app, e.location)
- elif isinstance(e, deploy.DeploymentParseError):
+ elif isinstance(e, app.DeploymentParseError):
print "Parse error for line '%s', at %s" % (e.value, e.location)
else:
raise e
import re
import itertools
+import logging
re_var = re.compile("^\*\*\*(\d+)\*\*\*\\\n", re.MULTILINE)