for attname, value in objmap.items(): if type(value) == type(''): try: value.encode('ascii') except UnicodeDecodeError: decoding = obj.zCollectorDecoding value = value.decode(decoding) if attname[0] == '_': continue att = getattr(aq_base(obj), attname, zenmarker) if att == zenmarker: log.warn('attribute %s not found on object %s', attname, obj.id)