Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(7) | Call(7) | Derive(0) | Import(0)
src/p/r/Products.AttachmentField-1.4.5/Products/AttachmentField/AttachmentField.py Products.AttachmentField(Download)
filename = self.getFilename(instance) msg = 'EXCEPTION object: %s, file: %s: \n' % (path, filename) LOG.warning(msg, exc_info=True) else: LOG.warning('Exception occured', exc_info=True)
src/p/r/Products.AttachmentField-1.4.5/Products/AttachmentField/AttachmentHandler.py Products.AttachmentField(Download)
f = open(errfile, "r") except: LOG.warning("Unable to open error file '%s'", errfile) else: errors = f.read()
raise RuntimeError, "'%s' returned nothing. Error reported by plugin: '%s'. Indexing cancelled." % (cmd, errors, ) elif idx and errors: LOG.warning("'%s' returned error while indexing: '%s'\nIndexing done anyway.", cmd, errors) LOG.debug("Conversion done. Implicitly closing streams.")
else: LOG.warning( "Converter program '%s' not found for '%s' attachments! Indexing and preview won't work.", program, conv_type)
program = commands.getoutput("which %s" % (program)) if not program: LOG.warning("Converter program '%s' not found for '%s' attachments! Indexing and preview won't work.", conv_path, conv_type) converter.error = True
src/p/r/Products.AttachmentField-1.4.5/Products/AttachmentField/OOAttachment.py Products.AttachmentField(Download)
except: LOG.warning("""libxml2 or libxslt not available. Under windows, download it at http://users.skynet.be/sbi/libxml-python/ Open-Office indexing will be disabled.""") else: from ooconverter import oo_to_html