Commit ca187888 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove an XXX, use of INVALID_OID with a valid OID value is not an issue because

the INVALID_OID is never generated by getNewOIDList(). Moreover, we can't answer
with an error in the case where we have no last OID but a last PTID.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1157 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fa52609d
......@@ -1189,8 +1189,8 @@ def askLastIDs():
return Packet(ASK_LAST_IDS)
def answerLastIDs(loid, ltid, lptid):
# XXX: this is a valid oid, an error should be returned instead of this
# packet when no last IDs are known
# in this case, loid is a valid OID but considered as invalid. This is not
# an issue because the OID 0 is hard coded and will never be generated
if loid is None:
loid = INVALID_OID
ltid = _encodeTID(ltid)
......
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