How can I import a file called content.asp?content_category_id=1 to Zope? Neither that name or content.asp%3Fcontent_category_id=1 appear to be acceptable. -- John
On Sat, Sep 18, 2004 at 09:43:43AM +0100, John Poltorak wrote:
How can I import a file called content.asp?content_category_id=1 to Zope?
Neither that name or content.asp%3Fcontent_category_id=1 appear to be acceptable.
You can't. Folders and other ObjectManagers check the ID before allowing you to add the object. Among other things, they check this regular expression: Folders and other ObjectManagers check the ID before allowing you to add the object. Among other things, they check against this regular expression: re.compile(r'[^a-zA-Z0-9-_~,.$\(\)# ]') So anything not in those characters is illegal. There are some other restrictions too. See the checkValidID function in lib/python/OFS/ObjectManager.py. -- Paul Winkler http://www.slinkp.com
On Sat, Sep 18, 2004 at 09:43:43AM +0100, John Poltorak wrote: | | How can I import a file called content.asp?content_category_id=1 to Zope? That is the name of the file? I suspect your apache vs. zope problem is that apache doesn't set the content-type to html because the file name doesn't end in .html. My guess is that the data was once an ASP-based site, then someone took a snapshot of it and saved the static html using file names that resemble dynamic queries. The simplest solution may be to tweak apache's configuration so that it sets the content-type to text/html for all of those files, or to use some sort of refactoring tool (I don't know of one for HTML) that will rename the files and update the links to them. HTH, -D -- If we claim to be without sin, we deceive ourselves and the truth is not in us. I John 1:8 www: http://dman13.dyndns.org/~dman/ jabber: dman@dman13.dyndns.org
participants (3)
-
Derrick Hudson -
John Poltorak -
Paul Winkler