'This enum code is used by an event. Make sure it\'s available'

def checkforenum(self, enum):

    (name, fullname, module) = self.findcodename('enum', enum)
    if (not name):
        if self.fp:
            self.fp.write(('_Enum_%s    =    None    #    XXXX    enum    %s    not    found!!\n' % (identify(enum), ascii(enum))))
        return
    if module:
        if self.fp:
            self.fp.write(('from    %s    import    %s\n' % (module, name)))
