[ZPatterns] "KeyError: _v_parent" after upgrading from 0-4-3b1 to 0-4-3p2

Jean Jordaan [email protected]
Thu, 27 Sep 2001 13:49:48 +0200


Hi all

We have a ZPatterns app. I've upgraded from ZPatterns 0-4-3b1 to
0-4-3p2, and am running into trouble. I have called 'manage_pack'
on the rack as mentioned in ZPatterns/help/CHANGES.txt

The rack looks like this::

    Rack at /Licenses/defaultRack

    Objects are:
    loaded by accessing attribute: original_object

    Store 'persistent' data: Directly in this object

    Persistent slots in use: 0

The SkinScript looks like this::

    # Handle the case where we just got created...
    INITIALIZE OBJECT WITH
        original_object = Contacts.Customers.newItem(self.id)

    # ...and the case where we already existed
    WITH Contacts.Customers.getItem(self.id)
    COMPUTE original_object=RESULT

    # Map the other object's names to mine...
    WITH self.original_object
    COMPUTE Name=Name
          , customerNumber=customerNumber
          , addressID=addressID

    WITH SELF COMPUTE __bobo_traverse__=traversal_method

    # ...and mine to its
    WHEN OBJECT ADDED, CHANGED
    STORE Name
    USING
        self.original_object.propertysheets.basic.manage_changeProperties(
                                                            Name=self.Name)

    # Last, but not least, get rid of the other guy when I'm deleted
    WHEN OBJECT DELETED
    CALL self.original_object.manage_delete()

This is the traceback I get when trying to access an item from this
rack::

  Site Error
  An error was encountered while publishing this resource.

  KeyError

  Sorry, a site error occurred.

Traceback (innermost last):
  File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 223, in
publish_module
  File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/2-3-0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ProviderContainer)
  File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 162, in
publish
  File /usr/local/zope/2-3-0/lib/python/ZPublisher/BaseRequest.py, line 340,
in traverse
  File
/usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/Specialists.py,
line 22, in __bobo_traverse__
    (Object: ProviderContainer)
  File
/usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/Specialists.py,
line 34, in getItem
    (Object: ProviderContainer)
  File /usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/Rack.py,
line 59, in getItem
    (Object: ProviderContainer)
  File /usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/Rack.py,
line 96, in retrieveItem
    (Object: ProviderContainer)
  File /usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/Rack.py,
line 235, in _RawItem
    (Object: ProviderContainer)
  File /usr/local/zope/2-3-0/lib/python/OFS/CopySupport.py, line 480, in
_setId
    (Object: )
  File
/usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/DataSkins.py, line
254, in __set_attr__
    (Object: )
  File
/usr/local/zope/creme/2-3-0/lib/python/Products/ZPatterns/DataSkins.py, line
240, in _canonicalForm
    (Object: )
KeyError: _v_parent

Any help would be most appreciated ..

Regards,
Jean