[ZPatterns] ZPatterns 0.4.3p2 breaks LoginManager; 0.4.3p1 works fine

Steve Spicklemire steve@spvi.com
Sun, 29 Jul 2001 20:40:36 -0500


Hi Itai,

I think there were some changes to the DataSkin default constructor that=20=

cause this behavior. I think that SteveA's latest patches fix it (they=20=

certainly work for 2.4.0, but I don't know if they are *all* backward=20
compatable. If I can I'll snoop through the various patches. I'm=20
guessing you could apply that part of SteveA's patches that deal with=20
the __init__ method of DataSkin and apply that to 0.4.3p2 and it would=20=

work.. but it's just a guess at this point.

-steve

On Sunday, July 29, 2001, at 08:23 PM, Itai Tavor wrote:

> Hi,
>
> Using ZPatterns 0.4.3p2 and LoginManager 0.8.8b1 in Zope 2.3.2, I get =
a=20
> traceback when I try to access anything in a Folder that contains a=20
> Login Manager object. The same setup works if I downgrade to ZPatterns=20=

> 0.4.3p1. The rest of my application works fine in 0.4.3p2.
>
> Has anybody else seen this? Any workaround?
>
> =A0
> Error Type: KeyError
> Error Value: _v_parent
>
> Traceback (innermost last):
> =A0 File /opt/zope/2.3.2/lib/python/ZPublisher/Publish.py, line 223, =
in=20
> publish_module
> =A0 File /opt/zope/2.3.2/lib/python/ZPublisher/Publish.py, line 187, =
in=20
> publish
> =A0 File /opt/zope/2.3.2/lib/python/Zope/__init__.py, line 221, in=20
> zpublisher_exception_hook
> =A0=A0=A0 (Object: Traversable)
> =A0 File /opt/zope/2.3.2/lib/python/ZPublisher/Publish.py, line 162, =
in=20
> publish
> =A0 File /opt/zope/2.3.2/lib/python/ZPublisher/BaseRequest.py, line =
446,=20
> in traverse
> =A0 File /home/zope/devel/Products/LoginManager/LoginManager.py, line=20=

> 236, in validate
> =A0=A0=A0 (Object: ProviderContainer)
> =A0 File /home/zope/devel/Products/LoginManager/LoginMethods.py, line=20=

> 100, in findLogin
> =A0=A0=A0 (Object: PlugInBase)
> =A0 File /home/zope/devel/Products/LoginManager/LoginManager.py, line=20=

> 193, in getItem
> =A0=A0=A0 (Object: ProviderContainer)
> =A0 File /home/zope/devel/Products/ZPatterns/Rack.py, line 59, in =
getItem
> =A0=A0=A0 (Object: ProviderContainer)
> =A0 File /home/zope/devel/Products/ZPatterns/Rack.py, line 96, in=20
> retrieveItem
> =A0=A0=A0 (Object: ProviderContainer)
> =A0 File /home/zope/devel/Products/ZPatterns/Rack.py, line 235, in=20
> _RawItem
> =A0=A0=A0 (Object: ProviderContainer)
> =A0 File /opt/zope/2.3.2/lib/python/OFS/CopySupport.py, line 480, in=20=

> _setId
> =A0=A0=A0 (Object: BetterLocalRolesMixin)
> =A0 File /home/zope/devel/Products/ZPatterns/DataSkins.py, line 254, =
in=20
> __set_attr__
> =A0=A0=A0 (Object: BetterLocalRolesMixin)
> =A0 File /home/zope/devel/Products/ZPatterns/DataSkins.py, line 240, =
in=20
> _canonicalForm
> =A0=A0=A0 (Object: BetterLocalRolesMixin)
> KeyError: (see above)
>
> --
>
> --
> Itai Tavor=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 -- "Je sautille, donc je suis."=A0=A0=A0 --
> itai@optusnet.com.au=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 - Kermit the Frog --
> --=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --
> -- "If you haven't got your health, you haven't got anything"=A0=A0=A0=A0=
=A0 --