[Erp5-dev] copy or cut & paste - SQLCatalog problems

Łukasz Nowak lukasz.nowak at ventis.com.pl
Fri Sep 21 11:03:34 CEST 2007


On 2007-09-21, 10:54:53
Jean-Paul Smets <jp at nexedi.com> wrote:

> Łukasz Nowak a écrit :
> > Hello,
> >
> > While doing copy or cut & paste on objects in Zope (eg. Container
> > and Container Line type in Sale Packing List) I have WARNING from
> > SQLCatalog, generated by line:
> >
> > LOG('SQLCatalog', WARNING,
> >                 'uid of %r changed from %r to %r as old one is
> > assigned to %s in catalog !!! This can be fatal. You should reindex
> > the whole site immediately.' % (object, uid, object.uid,
> > catalog_path))
> >
> > (about 1570 line of ZSQLCatalog/SQLCatalog.py)
> >
> > And then I have to reindex whole site.
> >
> > How can I fix it? What would be real problem? Is that problem
> > unit-tested somewhere?
> >
> >   
> Please provide a bit more information:  what is the type of object
> (class, portal type).

Container and Container Line moved in same/different Sale Packing Lists.

Sale Invoice Transaction Line moved from one to another Sale Invoice
Transaction.

Image and File moved from one to another Product or Component (this is
our extension).

Example logs (we've got many of them):

uid of <AccountingTransactionLine at /erp5/accounting_module/493/25>
changed from 164086L to 164080L as old one is assigned to deleted in
catalog !!! This can be fatal. You should reindex the whole site
immediately.

uid of <Container at /erp5/sale_packing_list_module/148/51/66> changed
from 162559L to 162489L as old one is assigned to deleted in
catalog !!! This can be fatal. You should reindex the whole site
immediately.

uid of <Image at /erp5/component_module/226/8> changed from 104411L to
104711L as o ld one is assigned to /erp5/component_module/225/7 in
catalog !!! This can be fatal. You should reindex the whole site
immediately.

uid of <File at /erp5/component_module/225/7> changed from 104710L
(property) to 10 4411 (catalog, by path) !!! This can be fatal. You
should reindex the whole site immediately.

Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''



More information about the Erp5-dev mailing list