[PEAK] Silly basic problem: commands.NoSuchSubCommand
Paul Moore
pf_moore at yahoo.co.uk
Sun Mar 7 12:39:59 EST 2004
This is a silly trivial issue. I'm reasonably sure I had this working
before.
Application structure:
monitor\main.py
defines class Main(commands.Bootstrap)
class CmdTest(commands.AbstractCommand)
monitor\monitor.ini
[peak.running]
app = importString("monitor.main:Main")
[peak.running.shortcuts]
test = importString("monitor.main:CmdTest")
* = commands.NoSuchSubCommand
This is basically from the tutorial.
Now, peak runIni monitor\monitor.ini a generates a traceback saying
AttributeError: 'module' object has no attribute 'NoSuchSubCommand'.
I thought the idea of NoSuchSubCommand was to give a friendly error
when an unexpected command was entered?
As I say, I thought I'd had this working, so have I done something
obviously wrong? Originally, monitor\main.py was called
monitor\commands.py - I changed the name in case there was a lookup
clash (which would be horrible if true, but I wanted to check).
I just tried the example bulletins app that comes with the PEAK
sources, and that works. I can see nothing different in it.
Aaargh!
Any help would be gratefully received.
Paul
--
This signature intentionally left blank
More information about the PEAK
mailing list