play_command is not defined in modules' commands.py

Bug #558412 reported by Guy Bolton King
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
play framework
Fix Committed
Undecided
Erwan Loisant

Bug Description

As of r844 in the 1.1 branch, specifying --with to the new command no longer works:

play new testapp --name=testapp --with=crud
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.1-unstable-r853, http://www.playframework.org
~
~ The new application will be created in /Users/guy/src/play/testapp
~
Traceback (most recent call last):
  File "/Users/guy/src/play/1.1/play", line 101, in <module>
    cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env)
  File "/Users/guy/src/play/1.1/framework/pym/commands/base.py", line 25, in execute
    new(app, args, env)
  File "/Users/guy/src/play/1.1/framework/pym/commands/base.py", line 94, in new
    execfile(commands)
  File "/Users/guy/src/play/1.1/modules/crud/commands.py", line 4, in <module>
    if play_command == 'crud:ov' or play_command == 'crud:override':
NameError: name 'play_command' is not defined

Tags: 1.1 modules
Erwan Loisant (eloisant)
Changed in play:
assignee: nobody → Erwan Loisant (eloisant)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.