On 06/26/2013 09:59 AM, John Fabiani wrote:
dCursorMixin.py
def getNonUpdateFields(self):
if self.__nonUpdateFields is None:
# They haven't been set yet
self.__setNonUpdateFields()
return list(set(self.nonUpdateFields + self.__nonUpdateFields))
TypeError: can only concatenate list (not "NoneType") to list
If self.__nonUpdateFields == None
then
self.__setNonUpdateFields() does not change it. It will of course
produce the error.
It seems that the method should check the value (or change the value)
so that the error is not produced.
Dabo 0.9.12
Johnf
Does anyone have any thoughts about this?
I changed it in my code but I not sure this is what Dabo wants.
def getNonUpdateFields(self):
if self.__nonUpdateFields is None:
# They haven't been set yet
self.__setNonUpdateFields()
if self.__nonUpdateFields is None:
return list(set(self.nonUpdateFields))
else:
return list(set(self.nonUpdateFields +
self.__nonUpdateFields))
Of course it prevents the error
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]