Hi; I'm building out a new server and trying to import all the functionality from the old OS-corrupted server. The Web site built on this server have a directory structure that's easy for identifying stuff but makes for long URLS: example.com/dir1/dir2/dir3/dir4/index.pt They're always the same dirs and they appear on every page of every site. The sysadmin before me had a neat little script buried somewhere that made those dirs disappear when they posted to a browser. That's important for SEO, since the SEs only go a couple dirs deep. But I'll be darned if I know where this guy put that script! I tried to tarball his old Zope build-out and unpack and use it, but I got this error: Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be imported Traceback (most recent call last): File "/usr/local/zope/278/lib/python/Zope/Startup/datatypes.py", line 106, in importable_name package = __import__(n, g, g, component) File "/usr/local/zope/278/lib/python/DBTab/ClassFactories.py", line 18, in ? import OFS.Uninstalled File "/usr/local/zope/278/lib/python/OFS/__init__.py", line 14, in ? import Products.ReplaceSupport.AdvancedPatch File "/usr/local/zope/instance1/Products/ReplaceSupport/__init__.py", line 17, in ? import Handlers File "/usr/local/zope/instance1/Products/ReplaceSupport/Handlers/__init__.py", line 30, in ? from Globals import package_home File "/usr/local/zope/278/lib/python/Globals.py", line 23, in ? import Acquisition, ComputedAttribute, App.PersistentExtra, os File "/usr/local/zope/278/lib/python/App/PersistentExtra.py", line 14, in ? from class_init import default__class_init__ File "/usr/local/zope/278/lib/python/App/class_init.py", line 14, in ? from AccessControl.PermissionRole import PermissionRole File "/usr/local/zope/278/lib/python/AccessControl/__init__.py", line 16, in ? import DTML File "/usr/local/zope/278/lib/python/AccessControl/DTML.py", line 18, in ? from DocumentTemplate import DT_Util File "/usr/local/zope/278/lib/python/DocumentTemplate/__init__.py", line 22, in ? from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile File "/usr/local/zope/278/lib/python/DocumentTemplate/DocumentTemplate.py", line 112, in ? from DT_String import String, File File "/usr/local/zope/278/lib/python/DocumentTemplate/DT_String.py", line 17, in ? from DT_Util import ParseError, InstanceDict, TemplateDict, render_blocks, str File "/usr/local/zope/278/lib/python/DocumentTemplate/DT_Util.py", line 42, in ? from cDocumentTemplate import InstanceDict, TemplateDict, \ ImportError: /usr/local/zope/278/lib/python/DocumentTemplate/cDocumentTemplate.so: Undefined symbol "PyUnicodeUCS2_DecodeLatin1" I'm not sure if I should even be trying that, but I thought maybe he put the script in there, since I can't find it as a prod. or anything else through the ZCMI. Ideas? TIA, Tony ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
--On 5. März 2007 12:27:32 -0500 tonylabarbara@aol.com wrote:
/usr/local/zope/278/lib/python/DocumentTemplate/cDocumentTemplate.so: Undefined symbol "PyUnicodeUCS2_DecodeLatin1"
You're running Zope with a different Python version/binary than the one used to compile and install Zope. Trible check that. -aj
-----Original Message----- From: lists@zopyx.com To: tonylabarbara@aol.com; zope@zope.org Sent: Mon, 5 Mar 2007 1:36 PM Subject: Re: [Zope] Problem On Rebuild
You're running Zope with a different Python version/binary than the one used to compile and install Zope. Trible check that.
I will; however, upon re-thinking this, it would be much better to know what file he edited, then edit the same. Does anyone have an idea what file one would edit in the Zope distro to capture the URL request and rewrite it, both on the way in and on the way out. TIA, Tony ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
----- Original Message ----- From: <tonylabarbara@aol.com> To: <zope@zope.org> Sent: Monday, March 05, 2007 1:15 PM Subject: Re: [Zope] Problem On Rebuild
You're running Zope with a different Python version/binary than the one used to compile and install Zope. Trible check that.
I will; however, upon re-thinking this, it would be much better to know what file he edited, then edit the same. Does anyone have an idea what file one would edit in the Zope distro to capture the URL request and rewrite it, both on the way in and on the way out.
I missed the beginning of this thread so i don't know if i missed something relevant, but url rewriting in general is often done within the front-end web server (eg. Apache). Jonathan
-----Original Message----- From: dev101@magma.ca To: zope@zope.org; tonylabarbara@aol.com Sent: Mon, 5 Mar 2007 2:19 PM Subject: Re: [Zope] Problem On Rebuild
I missed the beginning of this thread so i don't know if i missed something relevant, but url rewriting in general is often done within >the front-end web server (eg. Apache).
Logical, but this isn't done at the Web server. These sites go through Pound, which is a reverse proxy, then are actually served by Zope itself. Then again, perhaps they're rewritten in Zope's Web server! Where would that be, for 2.7.8? TIA, Tony ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
On Mon, Mar 05, 2007 at 02:11:45PM -0500, tonylabarbara@aol.com wrote:
-----Original Message----- From: dev101@magma.ca To: zope@zope.org; tonylabarbara@aol.com Sent: Mon, 5 Mar 2007 2:19 PM Subject: Re: [Zope] Problem On Rebuild
I missed the beginning of this thread so i don't know if i missed something relevant, but url rewriting in general is often done within >the front-end web server (eg. Apache).
Logical, but this isn't done at the Web server. These sites go through Pound, which is a reverse proxy, then are actually served by Zope itself.
Then again, perhaps they're rewritten in Zope's Web server! Where would that be, for 2.7.8?
Most likely you have a Virtual Host Monster instance, with some configuration on the Mappings tab. See http://www.plope.com/Books/2_7Edition/VirtualHosting.stx -- Paul Winkler http://www.slinkp.com
Ya know, I don't think that's the solution this other fella had, because the index page still shows the dir structure, but I can probably figure a way around that, and your solution is as elegant as it is simple. Thanks! Tony -----Original Message----- From: pw_lists@slinkp.com To: zope@zope.org Sent: Mon, 5 Mar 2007 3:48 PM Subject: Re: [Zope] Problem On Rebuild On Mon, Mar 05, 2007 at 02:11:45PM -0500, tonylabarbara@aol.com wrote:
-----Original Message----- From: dev101@magma.ca To: zope@zope.org; tonylabarbara@aol.com Sent: Mon, 5 Mar 2007 2:19 PM Subject: Re: [Zope] Problem On Rebuild
I missed the beginning of this thread so i don't know if i missed something relevant, but url rewriting in general is often done within >the front-end web server (eg. Apache).
Logical, but this isn't done at the Web server. These sites go through Pound, which is a reverse proxy, then are actually served by Zope itself.
Then again, perhaps they're rewritten in Zope's Web server! Where would that be, for 2.7.8?
Most likely you have a Virtual Host Monster instance, with some configuration on the Mappings tab. See http://www.plope.com/Books/2_7Edition/VirtualHosting.stx -- Paul Winkler http://www.slinkp.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 ) ________________________________________________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
participants (4)
-
Andreas Jung -
Jonathan -
Paul Winkler -
tonylabarbara@aol.com