1. Does anyone have a version of fsimport.py that works with 2.1.1? 2. How is it supposed to work? I placed the most recent version I could find in the Extensions dir. Then I added an external method in the root folder. Now I have a fsimport object there, with a "Try it" tab... that renders an error when activated. Error: Invalid request The parameter, fsdir, was omitted from the request. Make sure to specify all required parameters, and try the request again. The traceback: Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 155, in mapply (Object: fsimport) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 107, in missing_name File /usr/local/Zope/lib/python/ZPublisher/HTTPResponse.py, line 533, in badRequestError BadRequest: (see above) -- Best regards / Mvh., Steen Suder, sysadm kollegie6400.dk -|- OpenSource --- Sign of the time Scan-Aqua ADVARSEL WARNING http://www.uk.k64.dk/sfs/Scan-Aqua/
From <http://www.linuxworld.com/linuxworld/lw-1999-12/lw-12-holiday.html>
. . . the Web developer Zope is dope. Here is a complete publishing system that has been used successfully by many sites. The Python programming language, which serves as the interface for building complex scripts with Zope, is both easy to learn and easy to compile for really fast execution. Zope provides all you need to create an intelligent Website, including the necessary tools, discussion forums, database interfaces, DHTML coding, integration with XML and objects, and so on. With all it does, this tool could fetch thousands of dollars, but Zope provides it for free. http://www.zope.org
Creating XML Apps with Zope <http://xml.com/pub/1999/12/zope/index.html?wwwrrr_rss>
Steen Suder wrote:
1. Does anyone have a version of fsimport.py that works with 2.1.1? 2. How is it supposed to work?
OK, by digging deeper into the archives, I found out that it is supposed to work like: URL/fsimport?fsdir=somefilesystemdir (Btw., is the somefilesystemdir supposed to be on the server on which Zope runs or on the client machine?) It gives the following error: Error Type: Bad Request Error Value: The id windows is invalid - it is already in use. Traceback: Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: fsimport) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: fsimport) File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 248, in __call__ (Object: fsimport) (Info: ((<Application instance at 850fed0>, (Here was the actual data of the file) File /usr/local/Zope/Extensions/fsimport.py, line 14, in fsimport (Object: ApplicationDefaultPermissions) File /usr/local/Zope/Extensions/fsimport.py, line 61, in rcimport File /usr/local/Zope/Extensions/fsimport.py, line 61, in rcimport File /usr/local/Zope/Extensions/fsimport.py, line 60, in rcimport File /usr/local/Zope/lib/python/OFS/Folder.py, line 119, in manage_addFolder (Object: ElementWithAttributes) File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 225, in _setObject (Object: ElementWithAttributes) File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 209, in _checkId (Object: ElementWithAttributes) Bad Request: (see above)
<CUT> Does it mean that it won't work with the 2.1.1 release? (Hint for Michel ;-) -- Best regards / Mvh., Steen Suder, sysadm kollegie6400.dk -|- OpenSource --- Sign of the time Scan-Aqua ADVARSEL WARNING http://www.uk.k64.dk/sfs/Scan-Aqua/
Steen Suder wrote:
Steen Suder wrote:
1. Does anyone have a version of fsimport.py that works with 2.1.1? 2. How is it supposed to work?
OK, by digging deeper into the archives, I found out that it is supposed to work like: URL/fsimport?fsdir=somefilesystemdir
(Btw., is the somefilesystemdir supposed to be on the server on which Zope runs or on the client machine?)
It's a directory on the server.
It gives the following error:
Error Type: Bad Request Error Value: The id windows is invalid - it is already in use.
It's just telling you that it tried to create an object called 'windows', but there was already an object with that id there. So it failed. It won't update objects that already exist in your ZODB, it will only create new ones. [traceback snipped]
Does it mean that it won't work with the 2.1.1 release? (Hint for Michel ;-)
-- Best regards / Mvh., Steen Suder, sysadm kollegie6400.dk -|- OpenSource --- Sign of the time
Scan-Aqua ADVARSEL WARNING http://www.uk.k64.dk/sfs/Scan-Aqua/
_______________________________________________ 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 )
participants (3)
-
Chris Abraham -
Nick Garcia -
Steen Suder