Section 19.4. WebConsole


19.4. WebConsole

TurboGears also provides a web-based version of the interactive Python prompt. You can play with your model objects, add data, and even run adhoc tests from the WebConsole.

The Console also imports your model and sets up your database connection automatically so you can just get down to work. Admittedly, there's nothing you can do in the Console that you couldn't do from the tg-admin shell.

As you can see in Figure 19.8, the Console gives you the opportunity to create multi-line Python statements, or quick one liners.

Figure 19.8. WebConsole





Rapid Web Applications with TurboGears(c) Using Python to Create Ajax-Powered Sites
Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites
ISBN: 0132433885
EAN: 2147483647
Year: 2006
Pages: 202

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net