LocalFS-0.10.1 and zope-2.3.x - subdirectories not found
I have tried updating to zope-2.3.0 and LocalFS-0.10.1 but now I cannot access any subdirectories in my local filesystems - I get resource not found errors when I try to traverse them or their contents. I get the same problem with zope-2.3.1b1. Error message and stack trace are: Zope Error Zope has encountered an error while publishing this resource. Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again. Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /dsk/1/tmp/makeme23671/Zope-2.3.1b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /dsk/1/tmp/makeme23671/Zope-2.3.1b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /dsk/1/tmp/makeme23671/Zope-2.3.1b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: files) File /dsk/1/tmp/makeme23671/Zope-2.3.1b1-src/lib/python/ZPublisher/Publish.py, line 162, in publish File /dsk/1/tmp/makeme23671/Zope-2.3.1b1-src/lib/python/ZPublisher/BaseRequest.py, line 338, in traverse File /opt/ngapp/encap/zope-2.3.0/zope/lib/python/Products/LocalFS/LocalFS.py, line 462, in __bobo_traverse__ (Object: files) File /dsk/1/tmp/makeme23671/Zope-2.3.1b1-src/lib/python/ZPublisher/HTTPResponse.py, line 547, in notFoundError NotFound: (see above) -- Martin Andrews mandrews@netgenics.com
I have tried updating to zope-2.3.0 and LocalFS-0.10.1 but now I cannot access any subdirectories in my local filesystems - I get resource not found errors when I try to traverse them or their contents. I get the same problem with zope-2.3.1b1.
I see what you mean. Looks like my last patch was a little sloppy. Here's a patch for it. I'll roll a new release here in a bit. Thanks for bringing that to my attention. --jfarr --- LocalFS.py.orig Fri Feb 09 23:14:48 2001 +++ LocalFS.py Wed Feb 21 10:29:36 2001 @@ -522,7 +522,7 @@ ob = None path = self._getpath(id) if (os.path.isdir(path)): - ob = LocalDirectory(id, path, self.root, self.tree_view, + ob = LocalDirectory(id, path, self.root or self, self.tree_view, self.catalog, self._type_map, self._icon_map) elif (os.path.isfile(path)): f = open(path, 'rb') @@ -760,7 +760,7 @@ op=cp[0] for ids in cp[1]: m.ids=ids - try: ob=m.bind(self.root) + try: ob=m.bind(self.root or self) except: raise CopyError, eNotFound self._verifyObjectPaste(ob, REQUEST) oblist.append(ob) @@ -1168,6 +1168,7 @@ _connected = 0 tree_view = 1 catalog = 0 + root = None def __init__(self, id, title, basepath, username, password): LocalDirectory.__init__(self, id, basepath, self, self.tree_view,
On Thursday 22 February 2001 01:43, Martin Andrews wrote:
I have tried updating to zope-2.3.0 and LocalFS-0.10.1 but now I cannot access any subdirectories in my local filesystems - I get resource not found errors when I try to traverse them or their contents. I get the same problem with zope-2.3.1b1. Error message and stack trace are:
i got this too. i just deleted the LocalFS instance, and recreated it. all's well. -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine if you SMELLLLLLL ... what the Rock is cookin
participants (3)
-
Bak@kedai -
Jonothan Farr -
Martin Andrews