I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances. Apologies for the apparent naivety of this question. I am new Zope, obviously. Regards Rod
Rod Thorburn wrote:
I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances.
You can call whatever version of Python you want to use when starting Zope. The binary release of that version makes a 'start' script that calls the Python binary that comes with it. You can edit that script to use whatever version of Python you like to execute 'z2.py'. (I usually make it call a symbolic link that I can change to point at different Python executables without editing the script.) Zope 2.6.x may or may not work well with Python 2.3.3. Zope 2.7 is the release that officially goes to Python 2.3 series. It has a slightly different scheme for starting, as I recall. --jcc -- "He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you."
J Cameron Cooper wrote:
Rod Thorburn wrote:
I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances.
You can call whatever version of Python you want to use when starting Zope. The binary release of that version makes a 'start' script that calls the Python binary that comes with it. You can edit that script to use whatever version of Python you like to execute 'z2.py'. (I usually make it call a symbolic link that I can change to point at different Python executables without editing the script.)
Zope 2.6.x may or may not work well with Python 2.3.3. Zope 2.7 is the release that officially goes to Python 2.3 series. It has a slightly different scheme for starting, as I recall.
--jcc
Is this true? Zope does use compiled c programs which must be linked to the correct Python version. Robert
robert rottermann wrote:
J Cameron Cooper wrote:
Rod Thorburn wrote:
I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances.
You can call whatever version of Python you want to use when starting Zope. The binary release of that version makes a 'start' script that calls the Python binary that comes with it. You can edit that script to use whatever version of Python you like to execute 'z2.py'. (I usually make it call a symbolic link that I can change to point at different Python executables without editing the script.)
Zope 2.6.x may or may not work well with Python 2.3.3. Zope 2.7 is the release that officially goes to Python 2.3 series. It has a slightly different scheme for starting, as I recall.
--jcc
Is this true? Zope does use compiled c programs which must be linked to the correct Python version.
Oops. You're right. I guess I never actually switch versions that way. Yes, one would also have to run the build script with the target Python, as well. --jcc -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
robert rottermann wrote:
J Cameron Cooper wrote:
Rod Thorburn wrote:
I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances.
You can call whatever version of Python you want to use when starting Zope. The binary release of that version makes a 'start' script that calls the Python binary that comes with it. You can edit that script to use whatever version of Python you like to execute 'z2.py'. (I usually make it call a symbolic link that I can change to point at different Python executables without editing the script.)
Zope 2.6.x may or may not work well with Python 2.3.3. Zope 2.7 is the release that officially goes to Python 2.3 series. It has a slightly different scheme for starting, as I recall.
--jcc
Is this true? Zope does use compiled c programs which must be linked to the correct Python version.
Oops. You're right. I guess I never actually switch versions that way. Yes, one would also have to run the build script with the target Python, as well. --jcc -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
Thanks to all who replied. My 'work around' was to install Zope 2.7.0, which comes bundled with Python 2.3.3 . Strangely, I couldn't find any reference to the Python version used by Zope 2.7.0 on zope.org. I only discovered this after installing. ----- Original Message ----- From: "J. Cameron Cooper" <jccooper@jcameroncooper.com> To: <zope@zope.org> Sent: Tuesday, February 17, 2004 1:21 PM Subject: Re: [Zope] how to configure Zope to use Python 2.3.3
robert rottermann wrote:
J Cameron Cooper wrote:
Rod Thorburn wrote:
I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances.
You can call whatever version of Python you want to use when starting Zope. The binary release of that version makes a 'start' script that calls the Python binary that comes with it. You can edit that script to use whatever version of Python you like to execute 'z2.py'. (I usually make it call a symbolic link that I can change to point at different Python executables without editing the script.)
Zope 2.6.x may or may not work well with Python 2.3.3. Zope 2.7 is the release that officially goes to Python 2.3 series. It has a slightly different scheme for starting, as I recall.
--jcc
Is this true? Zope does use compiled c programs which must be linked to the correct Python version.
Oops. You're right. I guess I never actually switch versions that way.
Yes, one would also have to run the build script with the target Python, as well.
--jcc
-- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
_______________________________________________ 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 )
Hi all. Is there a way to mount an OS directory (*nix/Windows) as a Zope database? I've done lots of Googling for an answer, but no results yet so I thought I'd ask here. We use Zope on Mandrake Linux at my company and a lot of our developers prefer to use Vi to edit files, and absolutely hate using the web interface to edit files (debugging hell). WebDAV is not totally out of the question, but we all think it would be cool if you could mount a directory as a Zope DB. Anyway, if there is no current way to do this, I'm considering writing it myself. Let me know what you all think. James Cammarata jimi@sngx.net www.sngx.net home: 314-835-1122 work: 314-872-2426 cell: 314-409-0583 ______________________________________________________________ Out the Ethernet, through the router, down the fiber, off another router, down the T1, past the fire-wall ...nothing but Net
Hi all. Is there a way to mount an OS directory (*nix/Windows) as a Zope database? I've done lots of Googling for an answer, but no results yet so I thought I'd ask here.
Try DirectoryStorage: http://dirstorage.sourceforge.net/ Tim
Hello
We use Zope on Mandrake Linux at my company and a lot of our developers prefer to use Vi to edit files, and absolutely hate using the web interface to edit files (debugging hell).
When you need it only for programming reasons, have a look at http://boa-constructor.sourceforge.net/. Regards Dieter
On Tue, 2004-02-17 at 02:35, Dieter Fischer wrote:
Hello
We use Zope on Mandrake Linux at my company and a lot of our developers prefer to use Vi to edit files, and absolutely hate using the web interface to edit files (debugging hell).
Try out External Editor (search zope.org for it). I use it with gvim all the time.
When you need it only for programming reasons, have a look at http://boa-constructor.sourceforge.net/.
Regards
Dieter
_______________________________________________ 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 )
-- Edward Muller - http://www.interlix.com - "Open Source Specialists" Dedicated Zope Hosting - Web Hosting - Open Source Consulting Network & PC Service & Support - Custom Programming Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572 Jabber: edwardam@jabber.interlix.com - AIM: edwardam453 - ICQ: 287033
James Cammarata wrote:
Hi all. Is there a way to mount an OS directory (*nix/Windows) as a Zope database? I've done lots of Googling for an answer, but no results yet so I thought I'd ask here.
We use Zope on Mandrake Linux at my company and a lot of our developers prefer to use Vi to edit files, and absolutely hate using the web interface to edit files (debugging hell). WebDAV is not totally out of the question, but we all think it would be cool if you could mount a directory as a Zope DB.
Anyway, if there is no current way to do this, I'm considering writing it myself. Let me know what you all think.
Depending on what you're doing, you may want to look at APE or LocalFS or FileSystemSite. LocalFS is mostly for content, FSS (and, similarly, CMF skins) is mostly for templates and scripts, and APE is for everything. LocalFS and FSS make filesystem stuff available in Zope's object tree. APE stores the objects on the filesystem. (There's a real difference, but they're very much equivalent.) APE is probably the most difficult to set up. There are some other options that mostly deal with individual files (ExtFile, External File) or with storing the ZODB in non-editable format (DirectoryStorage). But I find that most of your real work should probably be done in filesystem-side products anyway, and anything that's ZODB-resident is really glue and shouldn't be complex enough that editing in a text box is a serious hindrance. --jcc -- "He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you."
James Cammarata wrote at 2004-2-16 19:14 -0600:
Is there a way to mount an OS directory (*nix/Windows) as a Zope database?
That depends what you mean with "databse": * There is APE which allows you to save Zope objects on different media (standard ZODB, relational database, file system). This is an alpha state product. * There is "LocalFS". It gives Zope access to files in the file system. Depending on extension, the files are proxied by Zope objects (therefore, they can be uses as DTML methods, Python Scripts, File objects, ...) * There is "Filesystem Directory View" (part of CMF; also available as a stand alone (non CMF) product). It is similar to "LocalFS". Differences: it is read only and it is more efficient. -- Dieter
Rod Thorburn wrote at 2004-2-13 10:24 +1300:
I am running Zope 2.6.3 (binary release) on win2k, which by default installs Python 2.1.3 . However, I wish to use Python 2.3.3 and I can't see how to 'swap' Python instances.
You must generate Zope from source for this. This requires a C development system. It might be easier to use Zope 2.7 (which uses Python 2.3.3 out of the box). -- Dieter
participants (9)
-
Dieter Fischer -
Dieter Maurer -
Edward Muller -
J Cameron Cooper -
J. Cameron Cooper -
James Cammarata -
robert rottermann -
Rod Thorburn -
Tim TerlegÄrd