[Zope] fsimport HowTo

Milos Prudek prudek@sol.cz
Sun, 14 Mar 1999 15:56:37 +0100


Trying to use fsimport.py module, I get the following error:

Sorry, an error occurred.
Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 877, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 590, in
publish
    (Info: /ppm/fsimport)
  File
/usr/local/zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 254, in __call__
    (Object: CopySource)
    (Info: ((<Folder instance at 0x8a74010>,
'/web/srvs-sol/www.sol.cz/ppm/index.htm', form:
        fsdir: '/web/srvs-sol/www.sol.cz/ppm/index.htm'
[environ info omitted for brevity]
), {}, (None,)))
TypeError: read-only buffer, class

I put fsimport.py into /usr/local/zope/Extensions/ (I had to create
Extensions dir), and added fsimport external method to a directory
'ppm', then I pointed my browser to
http://www.sol.cz/Zope/ppm/fsimport?fsdir=/web/srvs-sol/www.sol.cz/ppm/index.htm,
which probably is not the way to do it, is it?

--
Milos Prudek