Re: [Zope] Btreefolder: How to fix Keyerror ???

2006-05-05 Thread robert rottermann

Thanks Dieter,
I stared at the solution and did not see it..

I tried a number of different things, all produced very unspecific 
tracebacks, just mentioning a problem with a btreefolder.

Fortunately I copied a traceback that pointed to the solution.

thanks again
robert

Dieter Maurer wrote:

robert rottermann wrote at 2006-5-5 08:35 +0200:
  

...
 Module Products.Archetypes.BaseFolder, line 104, in manage_afterAdd
 Module Products.Archetypes.BaseObject, line 179, in manage_afterAdd
  - __traceback_info__: (, 
, )
 Module Products.Archetypes.Referenceable, line 217, in manage_afterAdd
 Module Products.Archetypes.Referenceable, line 348, in _referenceApply
 Module Products.ZCatalog.Lazy, line 158, in __getitem__
 Module Products.BTreeFolder2.BTreeFolder2, line 210, in _getOb
KeyError: '11464251260848050376'



Looks as if your references were inconsistent (as always you find
out by examining the code in the lines identified by your traceback).

As always with inconsistencies, you have to resolve them.
In your special case, there are 2 options:

  1.  you delete the inconsistent references

  2.  you add an object with id "11464251260848050376"
  to the references "BTreeFolder2".

  


begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Btreefolder: How to fix Keyerror ???

2006-05-05 Thread Dieter Maurer
robert rottermann wrote at 2006-5-5 08:35 +0200:
> ...
>  Module Products.Archetypes.BaseFolder, line 104, in manage_afterAdd
>  Module Products.Archetypes.BaseObject, line 179, in manage_afterAdd
>   - __traceback_info__: ( /whirlweb/backup/whirlweb/portal_cartmanager>,  /whirlweb/backup/whirlweb>, )
>  Module Products.Archetypes.Referenceable, line 217, in manage_afterAdd
>  Module Products.Archetypes.Referenceable, line 348, in _referenceApply
>  Module Products.ZCatalog.Lazy, line 158, in __getitem__
>  Module Products.BTreeFolder2.BTreeFolder2, line 210, in _getOb
>KeyError: '11464251260848050376'

Looks as if your references were inconsistent (as always you find
out by examining the code in the lines identified by your traceback).

As always with inconsistencies, you have to resolve them.
In your special case, there are 2 options:

  1.  you delete the inconsistent references

  2.  you add an object with id "11464251260848050376"
  to the references "BTreeFolder2".

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )