On Fri, Aug 08, 2003 at 10:23:58AM -0400, Michael Long wrote:
Hi,
Is there a recipe/product that will load the ZODB as well as the zope environment from within the python interpreter? I would like to be able to play/test with a product that I am creating from within the interpreter.
IIRC things have changed somehow for zope 2.7, but for zope <= 2.6 you can do this: pw@kermit Zope-2.6.1-src $ export PYTHONPATH=lib/python/ pw@kermit Zope-2.6.1-src $ python Python 2.2.3 (#1, Jul 22 2003, 12:28:47) [GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import Zope app = Zope.app() # this takes a few seconds app.objectIds() ['acl_users', 'Control_Panel', 'standard_html_header', 'standard_html_footer', 'standard_error_message', 'index_html', 'temp_folder', 'browser_id_manager', 'session_data_manager', 'Examples', 'error_log', 'standard_template.pt']
-- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's THE TENSILE AARDVARK! (random hero from isometric.spaceninja.com)