All pastes #905618 Raw Copy code Copy link Edit

Someone

public text v1 · immutable
#905618 ·published 2008-02-15 22:29 UTC
rendered paste body
 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)