Commit efcda167 authored by Thierry's avatar Thierry

bug fix in case coloris is None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@557 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8acd911a
......@@ -79,9 +79,15 @@ def getColorisClient(self) :
if not coloris_value.getDestinationReference() in (None, '') :
return coloris_value.getDestinationReference('')
else :
return coloris.split('/')[-1]
if coloris is not None :
return coloris.split('/')[-1]
else :
return ''
else :
return coloris.split('/')[-1]
if coloris is not None :
return coloris.split('/')[-1]
else :
return ''
if coloris_client.has_key(key):
return coloris_client[key]
......@@ -90,9 +96,15 @@ def getColorisClient(self) :
if not coloris_value.getDestinationReference() in (None, '') :
return coloris_value.getDestinationReference('')
else :
return coloris.split('/')[-1]
if coloris is not None :
return coloris.split('/')[-1]
else :
return ''
else :
return coloris.split('/')[-1]
if coloris is not None :
return coloris.split('/')[-1]
else :
return ''
def getColorisClientKeyList():
return str(coloris_client.keys())
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