Re: [Zope] Big improvement for load_site.py, patch included
On Tue, 24 Jul 2001, seb bacon wrote:
(lazily not looking at the source)
Shame on you !-)
I'm guessing load_site uses a POST or the FTP interface or similar, right? Space is a legal character in Zope, but not in HTTP. So even M$ websites shouldn't have spaces in their names, anyway. Having said this, I've seen some sites which do, and IE handles them OK. Typical ;-)
However, there are some legal HTTP characters which are not legal Zope characters. Off the top of my head, these include '+' and '%'. load_site would need to parse document contents to fix this kind of thing, I imagine.
I don't know what load_site uses, because it's encapsulated in ZPublisher/Client.py, however I suppose the problem only occurs because of the ids (and maybe titles), so there's probably no need to parse documents' contents, only their ids/titles
I guess seb thinks of adapting links to documents/images/style sheets, whose URIs have to be changed, because their names contain characters which are illegal in zope ids. cheers, oliver
I'm guessing load_site uses a POST or the FTP interface or similar, right? Space is a legal character in Zope, but not in HTTP. So even M$ websites shouldn't have spaces in their names, anyway. Having said this, I've seen some sites which do, and IE handles them OK. Typical ;-)
the website might be fine in itself. www.microsoft.com/ Click Save As... and it saves a .html file and a folder by the name "Welcome to the Microsoft Corporate Web Site" In doing this it rewrites the HTML code (surprise!) to suit that name so you get <img src="Welcome to the Microsoft Corporate Web Site_fichiers/logo.gif"> (* note "_fichiers" (c'est francais means "_files" in english) *)
participants (2)
-
Oliver Bleutgen -
Peter Bengtsson