Wed, 19 Jun 2002 20:31:11 +0200
Arne Krug writes:
> I try to write a Zope-Product and I always get following Error:
> Error Type: UnpickleableError
> Error Value: Cannot pickle objects
> The problem is the following line in the __init__ method of the class:
> self.menuHeader = HTML('<table>',globals())
> I thought it should be possible as the class HTML inherits from Persistent
> or is it impossible to include objects in the first place.
No, you can include objects, even non-persistent ones.
They need only be picklable.
I do not see what is the cause of your problem, though.
I would try:
from Globals import DTMLFile
menuHeader= DTMLFile('the file name',globals())