def requires_repartition(answers): return 'installation-to-overwrite' in answers and \ upgrade.getUpgrader(answers['installation-to-overwrite']).repartition
def optional_backup(answers): return answers.has_key("installation-to-overwrite") and \ upgrade.getUpgrader(answers['installation-to-overwrite']).optional_backup
def requires_backup(answers): return "installation-to-overwrite" in answers and \ upgrade.getUpgrader(answers['installation-to-overwrite']).requires_backup
def optional_backup(answers): return "installation-to-overwrite" in answers and \ upgrade.getUpgrader(answers['installation-to-overwrite']).optional_backup