Commit abe5ceee authored by Fabien Morin's avatar Fabien Morin

add control of the len of b16encode gid's


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15666 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d847d85
...@@ -1064,9 +1064,10 @@ class Subscription(Folder, SyncCode): ...@@ -1064,9 +1064,10 @@ class Subscription(Folder, SyncCode):
This tries to get the object with the given gid This tries to get the object with the given gid
This uses the query if it exist This uses the query if it exist
""" """
#if len(gid)%2 != 0: if len(gid)%2 != 0:
#something encode in base 16 is always a even number of number #something encode in base 16 is always a even number of number
# return None #if not, b16decode will failed
return None
signature = self.getSignatureFromGid(gid) signature = self.getSignatureFromGid(gid)
# First look if we do already have the mapping between # First look if we do already have the mapping between
# the id and the gid # the id and the gid
......
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