Hi!
Here I attach a diff file that will let you use IPython as the
turbogears-admin shell if it's available. Maybe (later) we could add a
configuration option or something to let the user choose a particular
shell (as IPython is not the only one out there).
Now inspecting the model is somewhat easier :).
David
Index: __init__.py
===================================================================
--- __init__.py (revision 52)
+++ __init__.py (working copy)
@@ -148,8 +148,14 @@
locals = mod.__dict__
else:
locals = dict()
- import code
- code.interact(local=locals)
+ try:
+ # try to use IPython if possible
+ import IPython
+ shell = IPython.Shell.IPShell(user_ns=locals)
+ shell.mainloop()
+ except:
+ import code
+ code.interact(local=locals)
commands = {
"quickstart" : ("Create a new TurboGears project", quickstart.quickstart),