[Zope] Big improvement for load_site.py, patch included

seb bacon seb@jamkit.com
Tue, 24 Jul 2001 17:01:17 +0100


* Jerome Alet <alet@unice.fr> [010724 16:15]:
> > 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 was thinking of the situation mentioned earlier, where the document
called 'index.html' contains a reference to an image with a wierd
name:

  <img src="images/_foo%20bar.gif">

That won't work, because the image name will have to have been changed
to be Zope-friendly (foo_bar.gif, for example).

However, I'm butting into this thread a bit without really knowing
what you're talking about, so I'll shut up now ;-)

seb