[Zope] Symlink product returns "Attribute Error"

Phil Harris phil@harris-family.info
Thu, 28 Feb 2002 13:34:30 -0000


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 )