[Zope-ZEO] ZODB problems...

Steinar Rune Eriksen steinar@orion.no
Wed, 9 Aug 2000 00:07:44 +0200


Hi all,
I am trying to load a Python class as an extension which again accesses data
stored under ZODB. The Python classes are stored in a directory under
"Products" and I manage to create a sub ZClass in Zope for it. I have a
method on one of these classes which I call from a DTML document... the
method opens the ZODB and the first lines connects to the database
successfully
......................................................
self.__storage=FileStorage.FileStorage('/MyData.fs')
self.__db= DB(self.__storage)
self.__conn=self.__db.open()		
......................................................
, I print some debug information to stdandard out, so I know that my data
are read ok; the function eventually produces an XML document which is run
through a stylsheet producing an HTML string which I am trying to return to
Zope for viewing in the browser.... but.. on return I get the following
error which I think is connected to ZODB and transaction management. But I
don't understand it. Anyone ?

Zope Error
Zope has encountered an error while publishing this resource. 
Error Type: cPickle.PicklingError
Error Value: Cannot pickle objects.

Traceback (innermost last):
  File D:\Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File D:\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish
  File D:\Zope\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File D:\Zope\lib\python\ZPublisher\Publish.py, line 175, in publish
  File D:\Zope\lib\python\Zope\__init__.py, line 235, in commit
  File D:\Zope\lib\python\ZODB\Transaction.py, line 251, in commit
  File D:\Zope\lib\python\ZODB\Connection.py, line 348, in commit
    (Info: (('*vX4XbP4DN2I9Lx6KaHCunA==', 'scr'),
'\000\000\000\000\000\000\016#', ''))
cPickle.PicklingError: (see above)





**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Admin
Orion System AS
**********************************************************************

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Admin
Orion System AS
**********************************************************************