Commit f317ba57 authored by Nicolas Dumazet's avatar Nicolas Dumazet

add remark about limitations of consistency implementation in XMLMatrix


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33705 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7c5fdf6
......@@ -621,6 +621,14 @@ class XMLMatrix(Folder):
if getattr(aq_base(self), 'index', None) is None:
self.index = PersistentMapping()
# We will check each cell of the matrix the matrix
# XXX This code assumes the following predicate:
# each subobject of an XMLMatrix is either a Cell that needs
# consistency checking OR ( is not a Cell, and has an id that is
# not like "(\w+_)+(\d+_)*\d+" )
# But Documents inheriting XMLMatrix can have unrelated, non-cell
# subobjects, possibly with id looking like some_id_2. If it ever happens,
# an error will be wrongly raised.
for obj in self.objectValues():
object_id = obj.getId()
# obect_id is equal to something like 'something_quantity_3_2'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment