diff --git a/framework/pym/play/commands/modulesrepo.py b/framework/pym/play/commands/modulesrepo.py index c05dbd125d..d76681cc42 100644 --- a/framework/pym/play/commands/modulesrepo.py +++ b/framework/pym/play/commands/modulesrepo.py @@ -239,7 +239,7 @@ def new(app, args, play_env): replaceAll(os.path.join(app.path, 'conf/messages'), r'%MODULE%', application_name) replaceAll(os.path.join(app.path, 'conf/dependencies.yml'), r'%MODULE%', application_name) replaceAll(os.path.join(app.path, 'conf/routes'), r'%MODULE%', application_name) - replaceAll(os.path.join(app.path, 'conf/routes'), r'%MODULE_LOWERCASE%', string.lower(application_name)) + replaceAll(os.path.join(app.path, 'conf/routes'), r'%MODULE_LOWERCASE%', application_name.lower()) os.mkdir(os.path.join(app.path, 'app')) os.mkdir(os.path.join(app.path, 'app/controllers')) os.mkdir(os.path.join(app.path, 'app/controllers/%s' % application_name)) diff --git a/resources/module-skel/commands.py b/resources/module-skel/commands.py index 4e52a37288..8635fb2c2f 100644 --- a/resources/module-skel/commands.py +++ b/resources/module-skel/commands.py @@ -13,7 +13,7 @@ def execute(**kargs): env = kargs.get("env") if command == "%MODULE%:hello": - print "~ Hello" + print("~ Hello") # This will be executed before any command (new, run...)