コード例 #1
0
def newenvironment():
    """setup a base environment, with a backup wiki in case an extension actually fails"""
    mwinstaller = Mediawiki_Installer()

    #remove old stuff
    try:
        mwinstaller.uninstall(target_wiki)
    except Exception, e:  #?
        raise e
コード例 #2
0
def newenvironment():
	"""setup a base environment, with a backup wiki in case an extension actually fails"""
	mwinstaller=Mediawiki_Installer()
	
	#remove old stuff
	try:
		mwinstaller.uninstall(target_wiki)
	except Exception,e: #?
		raise e
コード例 #3
0
def clear():
    """When an extension fails to uninstall cleanly, uninstall the entire wiki, and 
	copy the backup back in its place"""
    mwinstaller = Mediawiki_Installer()
    mwinstaller.uninstall(target_wiki)
    mwinstaller.duplicate(target_wiki2, target_wiki)
コード例 #4
0
def clear():
	"""When an extension fails to uninstall cleanly, uninstall the entire wiki, and 
	copy the backup back in its place"""
	mwinstaller=Mediawiki_Installer()
	mwinstaller.uninstall(target_wiki)
	mwinstaller.duplicate(target_wiki2, target_wiki)