[Zope] rendering images from an external product revisited

Chris Withers lists at simplistix.co.uk
Wed Mar 24 08:44:13 EST 2004


(try and get more to the point when askign for help, not everyone has time to 
read hundres of lines of narrative ;-) )

Henny van der Linde wrote:

> Error Type: KeyError
> Error Value: SERVER_URL
> 
>   File C:\Program Files\WebSite251\lib\python\ZPublisher\Publish.py, line

Upgrade Zope while you're at it, 2.5.1 is criminally old...

>   File C:\Program Files\WebSite251\lib\python\OFS\Traversable.py, line 48,
> in absolute_url
>     (Object: afbeelding)
> KeyError: (see above)

You're not building correct acquisition wrapping for some of your objects.

If you get any subjects from a dict with something like:

obj = self.whatever[something]

...you need to do:

object = self.whatever[something].__of__(self)

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list