Re: [Zope] loading zope within python interpreter
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@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)
_______________________________________________ Zope maillist - Zope@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 )
Under UNIX: zopectl debug Under Windows there is no easy way. Someone posted a snippet a while back in the maillist on how to do it. Search the maillist for "dropPrivileges". I am going to make a utility function to make this a bit simpler for 2.7 final. - C ----- Original Message ----- From: "Michael Long" <mlong@datalong.com> To: "Paul Winkler" <pw_lists@slinkp.com>; "Zope" <zope@zope.org> Sent: Friday, August 08, 2003 4:42 PM Subject: Re: [Zope] loading zope within python interpreter
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@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)
_______________________________________________ Zope maillist - Zope@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 )
_______________________________________________ Zope maillist - Zope@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 )
participants (2)
-
Chris McDonough -
Michael Long