play_command is not defined in modules' commands.py

Reported by Guy Bolton King on 2010-04-08
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

Erwan Loisant (eloisant) on 2010-04-08
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  Edit
Everyone can see this information.

Other bug subscribers