[Plone-IT] Cartella senza più ID - 'NoneType' object is not callable

sauzher sauzher a gmail.com
Mar 1 Ago 2017 08:31:31 UTC


Ciao roberto,
I Btree hanno metodi di pulizia
  def _cleanup(self):
        """Cleans up errors in the BTrees.

        Certain ZODB bugs have caused BTrees to become slightly insane.
        Fortunately, there is a way to clean up damaged BTrees that
        always seems to work: make a new BTree containing the items()
        of the old one.

        Returns 1 if no damage was detected, or 0 if damage was
        detected and fixed.
        """

potresti accedere in bin/instance debug e tentare.

alessandro.

Il giorno 1 agosto 2017 09:56, Yuri <yurj a alfa.it> ha scritto:

> L'unica è determinare l'oid e con quello accedere tramite zodb e
> correggere l'oggetto.
>
>
> Il 31/07/2017 15:57, Roberto Rascioni ha scritto:
>
>> Ciao a tutti!
>>
>> ho un problema molto strano che mi hanno segnalato da qualche giorno:
>>
>> quando si cerca di accedere ad una determinata cartella si riceve l'errore
>>
>> Module Products.BTreeFolder2.BTreeFolder2, line 332, in objectCount
>> TypeError: 'NoneType' object is not callable
>>
>> La cartella non ha più ID e non si riesce né a rinominare né cancellare
>>
>> ValueError: No object with id "" exists
>>
>> Ho provato ad utilizzare il metodo *@@**migrate-btrees* <
>> http://blog.redturtle.it/2014/03/26/migrazioni-sorprese-gestire>
>> descritto nel blog di redTurtle
>> e ad eseguire il /Clear and Rebuild/ del catalogo ma senza risultati
>>
>> Ho provato anche a creare uno script python per rinominare la cartella,
>> ma anche lì ricevo lo stesso errore descritto sopra (id "" non esistente)
>>
>> Qualcuno di voi ha idea di come posso recuperare la cartella?
>>
>> Grazie a tutti in anticipo!
>>
>> Roberto
>> ** <http://blog.redturtle.it/2014/03/26/migrazioni-sorprese-gestire>
>>
>>
>> _______________________________________________
>> Plone-IT mailing list
>> Plone-IT a lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-plone-it
>> http://plone-regional-forums.221720.n2.nabble.com/Plone-Ital
>> y-f221721.html
>>
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-plone-it
> http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html
>



-- 
    bye
alessandro ceglie (aka sauzher)
************************************
l'iterazione è umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20170801/fef55136/attachment.html>


Maggiori informazioni sulla lista Plone-IT