erp5_core: setup a random id generator on portal_callable
If one callable has the default ID '1', it will break nearly all newContent calls on empty object
-
Owner
If one callable has the default ID '1', it will break nearly all newContent calls on empty object
Independently of the IMHO good thing of using just any id generator other than the (sadly still default) sequential document id generator, I think this is an implementation bug in
newContent
(or whatever is accessing the id "1" duringnewContent
): such action should likely never be given a chance to acquire. The faulty access is likely currently implemented as some__getattr__
call, which should be changed to anything which does not acquire:__getitem__
and_getOb
come to mind. Depending on how the result is used,__contains__
may be even better (I do not expectnewContent
to do anything at all with existing subobjects, besides detecting their presence, so fetching them itself seems pointless). -
mentioned in commit romain/slapos.core@5a51fd82
-
mentioned in commit romain/slapos.core@29eab601
-
mentioned in commit romain/slapos.core@f084d946
-
mentioned in commit romain/slapos.core@f2b1b11d
-
mentioned in commit romain/slapos.core@903ade71
-
mentioned in commit romain/slapos.core@5b664b73
-
mentioned in commit romain/slapos.core@f5b1832a
-
mentioned in commit romain/slapos.core@a429604e
-
mentioned in commit romain/slapos.core@f7ee4914
-
mentioned in commit romain/slapos.core@9c324865
-
mentioned in commit romain/slapos.core@457657e2
-
mentioned in commit romain/slapos.core@182af20c
-
mentioned in commit romain/slapos.core@3f367414
-
mentioned in commit romain/slapos.core@97370a6d
-
mentioned in commit romain/slapos.core@5c115a2e
-
mentioned in commit romain/slapos.core@3afe4c86
-
mentioned in commit romain/slapos.core@a8d044bd
-
mentioned in commit romain/slapos.core@684e606d
-
mentioned in commit romain/slapos.core@6c3e368c