summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2014-09-15 13:52:34 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2014-09-15 13:52:34 (GMT)
commitcc457e38d23d8d8452e27033d9b8ecfe290046ae (patch)
tree919a5b315c853064ccadd1724ab8cd808f76d99b
parent67e149cc394878002184c49ad7f979c933de12d0 (diff)
downloadmandaye-meyzieu-cc457e38d23d8d8452e27033d9b8ecfe290046ae.zip
mandaye-meyzieu-cc457e38d23d8d8452e27033d9b8ecfe290046ae.tar.gz
mandaye-meyzieu-cc457e38d23d8d8452e27033d9b8ecfe290046ae.tar.bz2
rp_meyzieu_manager: removing cryptdb option which doesn't work anymore
-rwxr-xr-xrp_meyzieu_manager7
1 files changed, 1 insertions, 6 deletions
diff --git a/rp_meyzieu_manager b/rp_meyzieu_manager
index 309ab96..c7e3785 100755
--- a/rp_meyzieu_manager
+++ b/rp_meyzieu_manager
@@ -15,7 +15,7 @@ from mandaye import config
from mandaye.log import logger
def get_cmd_options():
- usage = "usage: %prog --createdb|--upgradedb|--cryptpwd"
+ usage = "usage: %prog --createdb|--upgradedb"
parser = OptionParser(usage=usage)
parser.add_option("--createdb",
dest="createdb",
@@ -66,11 +66,6 @@ def main():
alembic_cfg.set_main_option("script_location", global_config.alembic_script_path)
command.upgrade(alembic_cfg, "head")
logger.info("Database upgraded")
- if options.cryptpwd:
- from mandaye.backends.default import ManagerSPUser
- for user in ManagerSPUser.all():
- user.password = encrypt_pwd(user.password)
- ManagerSPUser.save()
if __name__ == "__main__":
main()