Symlink product isn't working for me. When I go to add a symlink, I get an Attribute Error: Error Type: AttributeError Error Value: testa Traceback (innermost last): File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/zope/2.5.0/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/zope/2.5.0/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_addSymlink) File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_addSymlink) File /usr/local/zope/instance/Products/Symlink/__init__.py, line 22, in manage_addSymlink File /usr/local/zope/2.5.0/lib/python/OFS/ObjectManager.py, line 235, in _setObject (Object: bury) File /usr/local/zope/2.5.0/lib/python/OFS/ObjectManager.py, line 215, in _getOb (Object: bury) AttributeError: (see above) bury is the folder I'm trying to add the symlink to, testa is the object I'm trying to symlink to. It would appear that the problem is that _setObject() call doesn't work, and is unable to find the newly added symlink after it's added. I've looked at the source code (it's a very short product) but don't see anything wrong with the constructor. I assume this has something to do with the deep magic of playing with the __of__ acquisition in the symlink. I'm running Zope 2.5.0. Anyone have any success with this version, or ideas of where to start? Thanks! Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
what would testa be? if it is a object/property furhter down the original aquisition path then that might no longer exists in the current path. hth ----- Original Message ----- From: "Joel Burton" <joel@joelburton.com> To: <zope@zope.org> Sent: Thursday, February 28, 2002 1:21 PM Subject: [Zope] Symlink product returns "Attribute Error"
Symlink product isn't working for me. When I go to add a symlink, I get an Attribute Error:
Error Type: AttributeError Error Value: testa
Traceback (innermost last): File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/zope/2.5.0/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/zope/2.5.0/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_addSymlink) File /usr/local/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_addSymlink) File /usr/local/zope/instance/Products/Symlink/__init__.py, line 22, in manage_addSymlink File /usr/local/zope/2.5.0/lib/python/OFS/ObjectManager.py, line 235, in _setObject (Object: bury) File /usr/local/zope/2.5.0/lib/python/OFS/ObjectManager.py, line 215, in _getOb (Object: bury) AttributeError: (see above)
bury is the folder I'm trying to add the symlink to, testa is the object I'm trying to symlink to.
It would appear that the problem is that _setObject() call doesn't work, and is unable to find the newly added symlink after it's added.
I've looked at the source code (it's a very short product) but don't see anything wrong with the constructor. I assume this has something to do with the deep magic of playing with the __of__ acquisition in the symlink.
I'm running Zope 2.5.0. Anyone have any success with this version, or ideas of where to start?
Thanks!
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
_______________________________________________ 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 )
On Thu, 28 Feb 2002, Phil Harris wrote:
what would testa be?
if it is a object/property furhter down the original aquisition path then that might no longer exists in the current path.
Perhaps I'm misunderstanding. My structure: Root |- testa (DTML Document) |- bury (ordinary folder) |- where I'm trying to add the Symbolic Link the path I'm giving is just "/testa" So acquisition per se shouldn't be the issue: I'm giving it a simple path that points right to the real object. Thanks! -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
Hmm, surprises me, cos I use it quite extensively. I just replicated your layout and it worked first time. Maybe you have some security issue, possibly? ----- Original Message ----- From: "Joel Burton" <joel@joelburton.com> To: "Phil Harris" <phil@harris-family.info> Cc: <zope@zope.org> Sent: Thursday, February 28, 2002 3:24 PM Subject: Re: [Zope] Symlink product returns "Attribute Error"
On Thu, 28 Feb 2002, Phil Harris wrote:
what would testa be?
if it is a object/property furhter down the original aquisition path then that might no longer exists in the current path.
Perhaps I'm misunderstanding. My structure:
Root |- testa (DTML Document) |- bury (ordinary folder) |- where I'm trying to add the Symbolic Link
the path I'm giving is just "/testa"
So acquisition per se shouldn't be the issue: I'm giving it a simple path that points right to the real object.
Thanks!
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
On Thu, 28 Feb 2002, Phil Harris wrote:
Hmm, surprises me, cos I use it quite extensively.
I just replicated your layout and it worked first time.
Maybe you have some security issue, possibly?
Doubtful. "bury" is in the root folder (real root, no VHM or such) and I'm a manager with a standard acl_users. I'm testing it, so everything is pretty uncomplicated. I'm in Zope 2.5 running under ZEO. What are you in?
On Thu, 28 Feb 2002, Phil Harris wrote:
what would testa be?
if it is a object/property furhter down the original aquisition path then that might no longer exists in the current path.
Perhaps I'm misunderstanding. My structure:
Root |- testa (DTML Document) |- bury (ordinary folder) |- where I'm trying to add the Symbolic Link
the path I'm giving is just "/testa"
So acquisition per se shouldn't be the issue: I'm giving it a simple path that points right to the real object.
-- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
Joel, Zope2.5 but without ZEO, quite a few extra products added mostly my own. ----- Original Message ----- From: "Joel Burton" <joel@joelburton.com> To: "Phil Harris" <phil@harris-family.info> Cc: <zope@zope.org> Sent: Thursday, February 28, 2002 4:07 PM Subject: Re: [Zope] Symlink product returns "Attribute Error"
On Thu, 28 Feb 2002, Phil Harris wrote:
Hmm, surprises me, cos I use it quite extensively.
I just replicated your layout and it worked first time.
Maybe you have some security issue, possibly?
Doubtful. "bury" is in the root folder (real root, no VHM or such) and I'm a manager with a standard acl_users. I'm testing it, so everything is pretty uncomplicated.
I'm in Zope 2.5 running under ZEO. What are you in?
On Thu, 28 Feb 2002, Phil Harris wrote:
what would testa be?
if it is a object/property furhter down the original aquisition path then that might no longer exists in the current path.
Perhaps I'm misunderstanding. My structure:
Root |- testa (DTML Document) |- bury (ordinary folder) |- where I'm trying to add the Symbolic Link
the path I'm giving is just "/testa"
So acquisition per se shouldn't be the issue: I'm giving it a simple path that points right to the real object.
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
_______________________________________________ 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 (2)
-
Joel Burton -
Phil Harris