web/test/jstests/test_utils.html
author Vladimir Popescu <vladimir.popescu@logilab.fr>
Thu, 04 Apr 2013 11:58:41 +0200 (2013-04-04)
changeset 8926 336e4971dc50
parent 8879 982a49239420
permissions -rw-r--r--
[dataimport] backout 6947201033be (related to #2788402) (and add a try: except to cache the intended error) The problem actually comes from the ``MassiveObjectStore`` in the ``dataio`` cube, so it should be corrected there. Here, we only protect it with a ``RuntimeWarning`` so that the user can see the problem. ``value`` is set to ``None`` (whence to ``NULL`` from a database standpoint), so that the data can be nevertheless inserted in the database. However, only the keys present in ``row`` are actually non-'``NULL``'. The real solution is to work out the issue in ``MassiveObjectStore`` directly. The current try/except should only be a temporary hack.
<html>
  <head>
    <!-- dependencies -->
    <script type="text/javascript" src="utils.js"></script>
    <script type="text/javascript" src="../../data/jquery.js"></script>
    <script src="../../data/cubicweb.python.js" type="text/javascript"></script>
    <script src="../../data/cubicweb.js" type="text/javascript"></script>
    <script src="../../data/cubicweb.compat.js" type="text/javascript"></script>
    <!-- qunit files -->
    <script type="text/javascript" src="../../../devtools/data/qunit.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="../../../devtools/data/qunit.css" />
    <!-- test suite -->
    <script src="cwmock.js" type="text/javascript"></script>
    <script src="test_utils.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="main"> </div>
    <h1 id="qunit-header">cw.utils functions tests</h1>
    <h2 id="qunit-banner"></h2>
    <ol id="qunit-tests">
  </body>
</html>