cubicweb_seda/makefile
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Dec 2017 17:57:57 +0100
changeset 2915 451328134bee
parent 2388 b8fc498d0227
permissions -rw-r--r--
[entities] Add a safety belt avoid unexpected error in some corner case e.g. while debugging an instance I attempted to display result of 'Any X, C WHERE X container C' with unexpectedly to container for the entity, but I wasn't able to display it because rset.one() raised an error since len(rset) was 2. Even if the caller may be wrong, it seems ok to not call rset.one() if function is called in an erroneous context and simply return None in such case.


all:
	python xsd2yams.py > schema/seda2.py
	python xsd2uicfg.py | grep -v 'unsupported merge' | grep -v 'extending cards' > views/uicfg.py
	python xsd2entities.py | grep -v 'unsupported merge' | grep -v 'extending cards' > entities/generated.py

lcsv:
	python xsd2concepts.py migration/data