[Zope] loading zope within python interpreter

Michael Long mlong at datalong.com
Fri Aug 8 17:42:19 EDT 2003


Thanks for the reply. I am working with zope 2.7 so if anyone knows of
any *gotcha's* I would appreciate it. With this and the link Frode
replied with and google I will now continue my journey into the magical
world of Zope.

Cheers,
Mike


> IIRC things have changed somehow for zope 2.7, but for zope <= 2.6 you
> can do this:
> 
> pw at kermit Zope-2.6.1-src $ export PYTHONPATH=lib/python/ 
> pw at 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)
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 





More information about the Zope mailing list