[ZPatterns] ZPatterns 0.4.3p2 breaks LoginManager; 0.4.3p1
works fine
Itai Tavor
[email protected]
Mon, 30 Jul 2001 11:55:17 +1000
Hi Steve,
Wow, quick response. Thanks.
I'm not going to be able to upgrade to Zope 2.4 for a while, and I
don't feel safe messing with SteveA's pathces... this is going into
two live sites. Think I'll stick with ZPatterns 0.4.3p1 until a
tested patch or fix exists.
Steve Spicklemire wrote:
>Hi Itai,
>
>I think there were some changes to the DataSkin default constructor
>that cause this behavior. I think that SteveA's latest patches fix
>it (they certainly work for 2.4.0, but I don't know if they are
>*all* backward compatable. If I can I'll snoop through the various
>patches. I'm guessing you could apply that part of SteveA's patches
>that deal with the __init__ method of DataSkin and apply that to
>0.4.3p2 and it would 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 traceback when I try to access anything in a Folder that
>>contains a Login Manager object. The same setup works if I
>>downgrade to ZPatterns 0.4.3p1. The rest of my application works
>>fine in 0.4.3p2.
>>
>>Has anybody else seen this? Any workaround?
>>
>>
>>Error Type: KeyError
>>Error Value: _v_parent
>>
>>Traceback (innermost last):
>> File /opt/zope/2.3.2/lib/python/ZPublisher/Publish.py, line 223,
>>in publish_module
>> File /opt/zope/2.3.2/lib/python/ZPublisher/Publish.py, line 187, in publish
>> File /opt/zope/2.3.2/lib/python/Zope/__init__.py, line 221, in
>>zpublisher_exception_hook
>> (Object: Traversable)
>> File /opt/zope/2.3.2/lib/python/ZPublisher/Publish.py, line 162, in publish
>> File /opt/zope/2.3.2/lib/python/ZPublisher/BaseRequest.py, line
>>446, in traverse
>> File /home/zope/devel/Products/LoginManager/LoginManager.py, line
>>236, in validate
>> (Object: ProviderContainer)
>> File /home/zope/devel/Products/LoginManager/LoginMethods.py, line
>>100, in findLogin
>> (Object: PlugInBase)
>> File /home/zope/devel/Products/LoginManager/LoginManager.py, line
>>193, in getItem
>> (Object: ProviderContainer)
>> File /home/zope/devel/Products/ZPatterns/Rack.py, line 59, in getItem
>> (Object: ProviderContainer)
>> File /home/zope/devel/Products/ZPatterns/Rack.py, line 96, in retrieveItem
>> (Object: ProviderContainer)
>> File /home/zope/devel/Products/ZPatterns/Rack.py, line 235, in _RawItem
>> (Object: ProviderContainer)
>> File /opt/zope/2.3.2/lib/python/OFS/CopySupport.py, line 480, in _setId
>> (Object: BetterLocalRolesMixin)
>> File /home/zope/devel/Products/ZPatterns/DataSkins.py, line 254,
>>in __set_attr__
>> (Object: BetterLocalRolesMixin)
>> File /home/zope/devel/Products/ZPatterns/DataSkins.py, line 240,
>>in _canonicalForm
>> (Object: BetterLocalRolesMixin)
>>KeyError: (see above)
>>
>>--
>>
>>--
>>Itai Tavor -- "Je sautille, donc je suis." --
>>[email protected] -- - Kermit the Frog --
>>-- --
>>-- "If you haven't got your health, you haven't got anything" --
--
--
Itai Tavor -- "Je sautille, donc je suis." --
[email protected] -- - Kermit the Frog --
-- --
-- "If you haven't got your health, you haven't got anything" --