Skip to content

*: improvements

Xiaowu Zhang requested to merge xiaowu.zhang/erp5:feat/improve into master

in test, we install both erp5_full_text_myisam_catalog and erp5_full_text_mroonga_catalog, the test works by chance somehow

Adding erp5_full_text_myisam_catalog business template ... (imported in 0.259s) done (0.862s)
...
...
Adding erp5_simulation_test business template ... (imported in 0.288s) done (1.459s)
Adding erp5_csv_style business template ... (imported in 0.091s) done (0.929s)
Adding erp5_full_text_mroonga_catalog business template ... (imported in 0.725s) done (2.063s)
Adding erp5_simulation_test_trade_template business template ... (imported in 1.221s) done (2.4

if erp5_full_text_myisam_catalog is installed after erp5_full_text_mroonga_catalog we'll get below error, because we use z0_uncatalog_fulltext of erp5_full_text_myisam_catalog

  Module Products.ERP5Type.patches.DA, line 209, in DA__call__
   - <SQL Method at /erp5_portal_fead33e36739eaa8796f781621875cea/portal_catalog/erp5_mysql_innodb/z0_uncatalog_fulltext>
    query = self.template(p, **argdata)
  Module DocumentTemplate.DT_String, line 525, in __call__
    result = render_blocks(self._v_blocks, md,
  Module DocumentTemplate._DocumentTemplate, line 144, in render_blocks
    render_blocks_(blocks, rendered, md, encoding)
  Module DocumentTemplate._DocumentTemplate, line 245, in render_blocks_
    block = block(md)
  Module Products.ERP5Type.patches.sqltest, line 131, in render
    raise ValueError(msg)
ValueError: multiple values are not allowed for <em>uid</em>

in this MR, we fix also a mirror import issue

Edited by Xiaowu Zhang

Merge request reports