[Zope3-checkins] CVS: Zope3/doc - DEBUG.txt:1.5
Jim Fulton
jim@zope.com
Wed, 14 May 2003 06:44:46 -0400
Update of /cvs-repository/Zope3/doc
In directory cvs.zope.org:/tmp/cvs-serv3049
Modified Files:
DEBUG.txt
Log Message:
Added text on accessing application objects.
=== Zope3/doc/DEBUG.txt 1.4 => 1.5 ===
--- Zope3/doc/DEBUG.txt:1.4 Tue Dec 31 16:11:02 2002
+++ Zope3/doc/DEBUG.txt Wed May 14 06:44:46 2003
@@ -64,3 +64,18 @@
- basic - user:password used for http basic auth (it will be
base64 encoded by the debug method).
+ Accessing objects (without the debugger)
+
+ You can use the application object to open a database connection
+ to access your objects. If the application object is called, it
+ opens a database connection and fetches the root object::
+
+ root = app()
+
+ For example, to list the objects in the root folder:
+
+ print list(root)
+
+ Also note that, after initializing the application, by creating
+ the root object, you can access any global services setup diring
+ initialization.