[Cubicweb] Cryptic warning
Aurélien Campéas
aurelien.campeas at logilab.fr
Thu Dec 12 16:36:48 CET 2013
On 12/12/2013 16:33, Yann Cointepas wrote:
> Hi,
>
> Can someone help us to understand (and get rid of) these relatively
> recent warnings :
>
> Warning: [yams 0.38] no targettype specified and there are several
> relation definitions for rtype has_input: ['Text', 'FileParameter',
> 'Number']. Yet you get the first rdef.
> rdef = self.rdef(rschema, 'subject')
>
You shoud put something like:
# Filter an anoying warning in yams.
# XXX try to remove the filter with yams 0.39
import warnings
warnings.filterwarnings(
'ignore', message='\[yams 0.38\] no targettype specified')
in somecube.__init__ for instance, and wait for cw 3.18 to be able
to remove it.
Regards,
Aurélien.
More information about the Cubicweb
mailing list